天天看点

有关sqlitedrop数据库重建比delete方式来清空数据库更加有效率

今天浏览stackoverflow 发现一个有趣的问题:

which was more preferable as performance wise and without error cause to delete all the row from table in sqlite in android.

DELETE QUERY OR DROP TABLE AND RE-GENERATE THE TABLE?

及关于删除sqlite里面所有数据,用drop并重建比delete all sqlite里面的数据更加有效率