How can I resequence the value start of a Sequence in PostgreSQL?
Asked
Active
Viewed 206 times
-3
-
1What have you tried? Have you done any research? Have you seen [this answer](http://stackoverflow.com/a/4678411/983430), or [this one](http://stackoverflow.com/a/244265/983430), or a number of others? – Amos M. Carpenter Jul 15 '15 at 05:59
-
http://www.postgresql.org/docs/current/static/functions-sequence.html – a_horse_with_no_name Jul 15 '15 at 06:20
1 Answers
2
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
Frank Heikens
- 106,435
- 24
- 133
- 132
Yousuf Sultan
- 2,644
- 7
- 30
- 57