Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql reset auto increment

-- if you dont mind losing the data, do the following
TRUNCATE TABLE someTable RESTART IDENTITY;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #reset #auto #increment
ADD COMMENT
Topic
Name
6+7 =