I have this method which will remove all rows from a table but I also want it to reset the autoincrement so that when a new row is added it will start again. The SQL stateme
Building on dldnh's answer:
The following query will set seq to the largest value in the col identity column in the Tbl table, so there is no risk of violating constraints.
seq
col
Tbl
UPDATE sqlite_sequence SET seq = (SELECT MAX(col) FROM Tbl) WHERE name="Tbl"