Created
March 6, 2015 09:09
-
-
Save arsham/2473f6713bd441859b74 to your computer and use it in GitHub Desktop.
Updates the incremental value of the PK.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT setval('TEABLE_NAME_id_seq', (SELECT MAX(id) FROM TEABLE_NAME)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment