Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to reset autoincrement in sqlite java

db.delete("SQLITE_SEQUENCE","NAME = ?",new String[]{TABLE_NAME});
/*
when deleting or adding rows with AUTOINCREMENT used to reset counter 
to biggest primary key in table Author Akhilesh Dhar Dubey
*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reset #autoincrement #sqlite #java
ADD COMMENT
Topic
Name
9+5 =