setval max id postgresql sequence

Solutions on MaxInterview for setval max id postgresql sequence by the best coders in the world

showing results for - "setval max id postgresql sequence"
Debora
09 Sep 2018
1SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
Damián
12 Jun 2018
1SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
2