标签: android database
我们如何在android中删除数据库?
答案 0 :(得分:2)
这应该有效:
private SQLiteDatabase db; private static final String TABLE_NAME = "name_of_table"; try { db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); db.execSQL("VACUUM"); } catch (SQLException sqle) {....}