Answers for "reset postgres table index to next max value"

SQL
0

reset postgres table index to next max value

SELECT SETVAL('some_table_id_seq',MAX(id)+1) FROM some_table
Posted by: Guest on September-09-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language