oracle sequence 起始值设置

1,设置sequence 间隔 
Alter Sequence hibernate_sequence Increment By 10000;
COMMIT;
2,多nextval几次,讲sequence跳大,
SELECT   hibernate_sequence.nextval FROM dual
3,调大后将sequence间隔设回1
Alter Sequence hibernate_sequence Increment By 1;
COMMIT

你可能感兴趣的:(sequence,alter,nextval)