create sequence

create sequence seq_test

minvalue 1
maxvalue 999999999999999999999999999
start with 1
increment by 1
cache 20;

 

current sequence value:
select seqpart.currval from dual;

 

next sequence value:
select seqpart.nextval from dual;

posted on 2008-08-27 16:23  Good life  阅读(329)  评论(0编辑  收藏  举报