ALTER SEQUENCE <name> RESTART WITH (SELECT MAX(ID) FROM CUSTOMER);
Sometimes the select is not that start forward, but anyways would do good to be able to fetch new value with select,
Would make easier to reset the Sequences in some scenarios like when you have to enter data to db by hand etc (Like in development phase) or when there is an bug in software.
Submitted by: Tommi Prami (mwaltari)
ALTER SEQUENCE <name> RESTART WITH (SELECT MAX(ID) FROM CUSTOMER);
Sometimes the select is not that start forward, but anyways would do good to be able to fetch new value with select,
Would make easier to reset the Sequences in some scenarios like when you have to enter data to db by hand etc (Like in development phase) or when there is an bug in software.