how to drop database in sqlite?

前端 未结 8 1149
终归单人心
终归单人心 2020-12-03 17:05

I\'m using SQLite in android. I want to drop the database.

For example: mysql- drop database dbname

How do I implement this code in SQLite?

8条回答
  •  独厮守ぢ
    2020-12-03 17:30

    try this :

     context.deleteDatabase(DATABASE_NAME);
    

    How to delete SQLite database from Android programmatically

提交回复
热议问题