码迷,mamicode.com
首页 > 数据库 > 详细

SQLite - TRUNCATE TABLE

时间:2016-12-01 14:28:07      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:data   from   trunc   htm   rom   sqlite   creat   lsp   truncate   

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

标签:data   from   trunc   htm   rom   sqlite   creat   lsp   truncate   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!