Answers for "how to change sequence max value in postgresql"

SQL
1

postgres set sequence value to max id

SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
Posted by: Guest on January-19-2021
0

setval max id postgresql sequence

SELECT setval('table_id_seq', (SELECT MAX(id) FROM table));
Posted by: Guest on June-16-2021

Code answers related to "how to change sequence max value in postgresql"

Code answers related to "SQL"

Browse Popular Code Answers by Language