Last active
July 26, 2018 10:15
-
-
Save digitalm/0fce84920016752f32f9a96d0354e176 to your computer and use it in GitHub Desktop.
setval postgresql upto...
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
# companies テーブルの id を 2001 から始める | |
$ psql -d database_name | |
$ database_name=# SELECT setval(pg_get_serial_sequence('companies', 'id'), 2001); | |
setval | |
-------- | |
2001 | |
(1 row) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment