際際滷

際際滷Share a Scribd company logo
Dr. Girija Narasimhan
Part 32  sequence using auto primary key
Dr. Girija Narasimhan
SQL> create sequence seqgirija
2 start with 1000
3 increment by 1
4 nocycle
5 nocache;
Sequence created.
SQL> create table girija(flowerid number(6) primary key,fname varchar2(25));
Table created.
Dr. Girija Narasimhan
Dr. Girija Narasimhan
SQL> select * from girija;
FLOWERID FNAME
---------- -------------------------
1000 lotus
1001 sunflower
1002 jasmine

More Related Content

Part32 sequence using auto primary key