Home > Article > Web Front-end > How to use SQL statements of HTML5 Web Database database_html5 tutorial skills
//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); });