Last active
November 15, 2017 20:53
-
-
Save anderson-mota/6402b3a70335d0825fd9d94984037623 to your computer and use it in GitHub Desktop.
PostgresSQL
This file contains hidden or 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 nextval('releases_id_seq'::regclass); |
This file contains hidden or 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(pg_get_serial_sequence('users', 'id'), coalesce(max(id),1), false) FROM users; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment