SQLite 清空数据库表

13 Mar 2014


Sqlite 不支持truncate,可用 DELETE代替。

DELETE FROM table_name

但是效率更高的做法是,drop 掉表,然后重建。


Follow Me on GitHub

comments powered by Disqus