Examples of ALTER SEQUENCE
-
Setting the value of the
EMP_NO_GEN
sequence so the next value is 145.ALTER SEQUENCE EMP_NO_GEN RESTART WITH 145;
-
Resetting the base value of the sequence
EMP_NO_GEN
to the initial value stored in the metadataALTER SEQUENCE EMP_NO_GEN RESTART;
-
Changing the increment of sequence
EMP_NO_GEN
to 10ALTER SEQUENCE EMP_NO_GEN INCREMENT BY 10;