I have a few tables in SQLite and I am trying to figure out how to reset the auto-incremented database field.
I read that DELETE FROM tablename
should delete everything and reset the auto-incremement field back to 0
, but when I do this it just deletes the data. When a new record is inserted the autoincrement picks up where it left off before the delete.
My ident
field properties are as follows:
- Field Type:
integer
- Field Flags:
PRIMARY KEY
,AUTOINCREMENT
,UNIQUE
Does it matter I built the table in SQLite Maestro and I am executing the DELETE
statement in SQLite Maestro as well?
Any help would be great.