How can I resequence the value start of a Sequence in PostgreSQL?
-
1What have you tried? Have you done any research? Have you seen this answer, or this one, or a number of others?Amos M. Carpenter– Amos M. Carpenter2015-07-15 05:59:20 +00:00Commented Jul 15, 2015 at 5:59
-
postgresql.org/docs/current/static/functions-sequence.htmluser330315– user3303152015-07-15 06:20:33 +00:00Commented Jul 15, 2015 at 6:20
Add a comment
|
1 Answer
You can ALTER the sequence using the following code:
ALTER SEQUENCE RESTART .
You can go through the PostgreSQL sequence manuals at the below link:
http://www.postgresql.org/docs/current/static/sql-altersequence.html
1 Comment
Anthony
Thanks Yousuf. Will try this out and go through the manuals.