How to delete a database in WebSQL programmatically?

后端 未结 9 1012
执念已碎
执念已碎 2020-12-25 10:03

I am new to Web SQL database and I use it to save data in a local database in a web page.

 I can create a database

9条回答
  •  轮回少年
    2020-12-25 10:29

    No method to delete the existing database in websql it will clear when the cache is cleared or
    The browser is closed. If you want to create a database with the same name Just use openDatabase Method It will first check for the existence of the database with the same name. If not exists it will create one otherwise it will open the existing one

    please follow this link http://html5doctor.com/introducing-web-sql-databases/

提交回复
热议问题