Home  >  Article  >  Web Front-end  >  How to use SQL statements of HTML5 Web Database database_html5 tutorial skills

How to use SQL statements of HTML5 Web Database database_html5 tutorial skills

WBOY
WBOYOriginal
2016-05-16 15:50:541565browse

//The openDatabase method opens an existing database. If it does not exist, a database will be created. The parameters are the database name, version, database description, and data size. var db = window.openDatabase("mydatabase", "1.0", "My database description", 20000);

How to use SQL statements in the database

dbname.transaction(function (tx) { tx.executeSql(sql); });


Copy code
The code is as follows:












< /body>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn