Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

setval postgres example table id

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