Skip to content

Instantly share code, notes, and snippets.

@rainyear
Last active October 19, 2017 15:13
Show Gist options
  • Select an option

  • Save rainyear/6348896 to your computer and use it in GitHub Desktop.

Select an option

Save rainyear/6348896 to your computer and use it in GitHub Desktop.
TRUNCATE TABLE for sqlite.
delete from `TABLE`;
select * from sqlite_sequence;
update sqlite_sequence set seq=0 where name=`TABLE`;
@NaveenDA

Copy link
Copy Markdown

why we select query here??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment