-3

How can I resequence the value start of a Sequence in PostgreSQL?

Anthon
  • 69,918
  • 32
  • 186
  • 246
Anthony
  • 3
  • 1
  • 1
    What 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 –  Jul 15 '15 at 06:20

1 Answers1

4

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
  • 117,544
  • 24
  • 142
  • 135
Yousuf Sultan
  • 3,055
  • 8
  • 35
  • 63