Modify the increment of the sequence, then make a select statement, and then modify the increment back: SQLselectseq. nextvalfromdual; NEXTVAL ---------- 21SQLaltersequenceseqincrementby79; the sequence has been changed. SQLselectseq. nextvalfromdual; NEXTVAL----------100
Modify the increment of the sequence, perform a select operation, and then modify the increment back to SQL select seq. nextval from dual; NEXTVAL ---------- 21 SQL alter sequence seq increment by 79; sequence changed. SQL select seq. nextval from dual; NEXTVAL ---------- 100
Modify the increment of this sequence, then make a select statement, and then modify the increment back:
SQL> select seq. nextval from dual;
NEXTVAL
----------
21
SQL> alter sequence seq increment by 79;
The sequence has been changed.
SQL> select seq. nextval from dual;
NEXTVAL
----------
100
SQL> alter sequence seq increment by 1;
The sequence has been changed.
SQL> select seq. nextval from dual;
NEXTVAL
----------
101
SQL>