Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sqlite reset autoincrement

delete from your_table;    
delete from sqlite_sequence where name='your_table';
Comment

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
*/
Comment

sqlite reset autoincrement

UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'table_name';
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle temporary table 
Sql :: mysql update column to be nullable 
Sql :: output table plsql 
Sql :: mysql json query 
Sql :: mysql version 
Sql :: sql email Regex 
Sql :: csv into data postgres 
Sql :: create database in mysql 
Sql :: if in mysql 
Sql :: sql get inserted primary key 
Sql :: xampp mysql version 
Sql :: mysql remove first and last character from string 
Sql :: mysql delete entire row on condition 
Sql :: regexp in mysql 
Sql :: mysql run sql file 
Sql :: reindexing all tables sql server 
Sql :: convert polygon to text in mysql 
Sql :: how to add month in update sql 
Sql :: display all node label neo4j 
Sql :: update trigger 
Sql :: cast datetime to date in sql 
Sql :: sql download for windows 10 
Sql :: remove all data from table mysql 
Sql :: sql delimiter to columns 
Sql :: insert in to table sql 
Sql :: sql update multiple columns 
Sql :: clear table sql 
Sql :: exec procedure oracle 
Sql :: how to declare a variable in sql 
Sql :: mysql Client does not support authentication protocol requested by server; consider upgrading MySQL client 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =