Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

setval in postgres

SELECT setval('tbl_tbl_id_seq', max(tbl_id)) FROM tbl;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setval #postgres
ADD COMMENT
Topic
Name
9+4 =