首页 > 数据库技术 > 详细

SQLite - TRUNCATE TABLE

时间:2016-12-01 14:26:24      阅读:270      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/cnblogist/p/6121527.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!