Created
April 10, 2018 16:13
-
-
Save abairo/f6fc1e42923c0873ef842022229789a8 to your computer and use it in GitHub Desktop.
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 table_name, column_name, column_default from information_schema.columns where table_name='testing'; | |
SELECT nextval('your_table_id_seq'); | |
SELECT setval('professional_dealer_id_seq', COALESCE((SELECT MAX(id)+1 FROM professional_dealer), 1), false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment