I am finding trouble to find auto incement with the oracle table I am able to do it in mysql how can I implement it in oracle?
I am finding trouble to find auto incement with the oracle table I am able to do it in mysql how can I implement it in oracle?
You can create sequence for the auto increment values in the oracle
Let me know if you have problem furtherHTML Code:create sequence sequencename
I am new to oracle database so can you show me an example how to make a sequence?
First create table with numeric field in it
Then create sequence
then create triggerHTML Code:create sequence myseq start with 1 increment by 1;
HTML Code:create or replace trigger mytrig before insert on table for each row begin select myseq.nextval into :new.id from dual; end;
Bookmarks