Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

reset counter postgres

-- This will also delete all the data in the table. So be careful.

TRUNCATE TABLE someTable RESTART IDENTITY;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reset #counter #postgres
ADD COMMENT
Topic
Name
1+4 =