SQLite - TRUNCATE TABLE

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQLite - TRUNCATE TABLE相关的知识,希望对你有一定的参考价值。

https://www.tutorialspoint.com/sqlite/sqlite_truncate_table.htm

Unfortunately, no TRUNCATE TABLE in SQLite but DELETE to delete complete data from an existing table,
though it is recommended to use DROP TABLE to drop complete table and re-create it once again.

If you are using DELETE TABLE to delete all the records, it is recommended to use VACUUM to clear unused space.

DELETE FROM table_name;
VACUUM;
DROP TABLE table_name;








以上是关于SQLite - TRUNCATE TABLE的主要内容,如果未能解决你的问题,请参考以下文章

对table最后一行显示与隐藏

CSS3中新增属性总结

网页内搜索

网页内搜索

table

table 隔行变色