Delete Sqlite Database In Android March 23, 2024 Post a Comment I have created a database in sqlite named as DGC.DB and table name is drivers and now I want to drop my existing table in sqlite database .I try to delete this by exute delete queSolution 1: To Drop a table, use:ReplacepublicvoiddeleteAll() { db.delete(TABLE_NAME, null, null); } CopyWithpublicvoiddropTable() { db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); } Copy Share Post a Comment for "Delete Sqlite Database In Android"
Post a Comment for "Delete Sqlite Database In Android"