修改这个序列的increment,然后做一次select,然后再把increment 修改回来 : SQL select seq.nextval from dual; NEXTVAL ---------- 21 SQL alter sequence seq increment by 79; 序列已更改。 SQL select seq.nextval from dual; NEXTVAL ---------- 100
修改这个序列的increment,然后做一次select,然后再把increment 修改回来:
SQL> select seq.nextval from dual;
NEXTVAL
----------
21
SQL> alter sequence seq increment by 79;
序列已更改。
SQL> select seq.nextval from dual;
NEXTVAL
----------
100
SQL> alter sequence seq increment by 1;
序列已更改。
SQL> select seq.nextval from dual;
NEXTVAL
----------
101
SQL>