ALTER SEQUENCE sequence-name [RESTART WITH value] [INCREMENT BY value]
where valueis a numeric value.
Usage
The ALTER SEQUENCE statement sets the sequence value dynamically.
If you use the RESTART WITH option, the sequence is restarted with the given sequence number, and the following sequence number is value + 1.
If you use the INCREMENT BY option, the next returned value is current_value + value.
Note ALTER SEQUENCEsequence-nameRESTART WITHvalue provides the same functionality as the non-standard statement, SET SEQUENCEsequence-nameVALUEvalue, see SET SEQUENCE.
Examples
Change sequence SEQ1 to restart from 45.
ALTER SEQUENCE SEQ1 RESTART WITH 45;
Change sequence SEQ2 to continue with increments of 5.