Postgresql reset primary key autoincrement code example
Example: postgresql reset auto increment
-- if you dont mind losing the data, do the following
TRUNCATE TABLE someTable RESTART IDENTITY;
-- if you dont mind losing the data, do the following
TRUNCATE TABLE someTable RESTART IDENTITY;