sql - Truncate a table while preserving the auto increment ID in SQLite -


I have a SQLite database with many different tables I have one of these tables

Delete data table data AUTO_INCREMENT = {value from first query}

Is there a small / better method?

Unless you have created your table from AUTOINCREMENT to the primary key set, Starting with 1

Please read more about AUTOINCREMENT in SQLite from here:

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -