Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
i am new to postgres..in my database sequence maxvalue is 50 and i want reset the sequence after reach maxvalue how it is?
thankyou....
Posted
Comments
Maciej Los 27-Jul-15 1:55am    
The best way to find out is to do that.

1 solution

ALTER SEQUENCE <sequence name="" here=""> RESTART WITH 1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900