Drop Table 不会导致删除 sqlite 文件中的数据 [英] Drop Table doesnot result on deleting data in the sqlite file
本文介绍了Drop Table 不会导致删除 sqlite 文件中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Sqlite
数据库文件,我通过删除包含数千条记录的巨大数据库表来修改它,但文件大小在删除表之前保持不变.似乎它断开了指向数据的指针.任何想法如何删除表并在底层sqlite文件中对其进行深度删除.??
I have a Sqlite
database file that i modify it by dropping a huge database table that contains thousands of records but the file size remains as it before dropping the table. it seems that it disconnect pointers to data . any ideas how to drop table and make a deep deletion of it in the underlying sqlite file .??
推荐答案
要回收空间,请使用 vacuum
语句.
To reclaim space, use the vacuum
statement.
从 sqlite 提示
From a sqlite prompt
sqlite> VACUUM;
来自 shell 提示.
From a shell prompt.
$ sqlite3 filename 'VACUUM;'
这篇关于Drop Table 不会导致删除 sqlite 文件中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文