how to drop database in sqlite?

前端 未结 8 1150
终归单人心
终归单人心 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:23

    From http://www.sqlite.org/cvstrac/wiki?p=UnsupportedSql

    To create a new database, just do sqlite_open(). To drop a database, delete the file.

提交回复
热议问题