Last active
October 19, 2017 15:13
-
-
Save rainyear/6348896 to your computer and use it in GitHub Desktop.
TRUNCATE TABLE for sqlite.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from `TABLE`; | |
select * from sqlite_sequence; | |
update sqlite_sequence set seq=0 where name=`TABLE`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why we select query here??