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;

你可能感兴趣的:(sequence)