Reset Sequence using PostgreSQL

Written by

in

,

SELECT setval('YOUR_SEQUENCE_NAME', (SELECT MAX(id) FROM YOUR_TABLE_NAME));

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *