what is the use of alter sequence in postgresql code example
Example 1: postgresql alter table sequence
alter sequence your_sequence restart with 1000;
Example 2: alter sequence postgres
ALTER SEQUENCE eadmodulo_id_seq RESTART WITH 8;
alter sequence your_sequence restart with 1000;
ALTER SEQUENCE eadmodulo_id_seq RESTART WITH 8;