DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
reset postgres table index to next max value
SELECT SETVAL('some_table_id_seq',MAX(id)+1) FROM some_table
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#reset
#postgres
#table
#index
#max
ADD COMMENT
Topic
COMMENT
Name
9+3 =
Submit