Continuing from the JSQL mentioned above
4. Of course, with the popularity of HTML5, web DB has become the general trend
Therefore, JSQL is encapsulated into:
_CLIENTDATABASE_ = 'HotelManage';
_CLIENTDBVERSION_ = '0.1';
_CLIENTDBDESC_ = "First Client DataBase";
_CLIENTDBSIZE_ = 10240;
JSQL("create table sqllite(id int)").OnClient().execute();
for (var i = 0; i < 1000; i ) {
JSQL("insert into sqllite (id) values (" i ")").OnClient().execute();
};
var result = ("select * from sqllite").OnClient( ).executeSQL();
//alert(result);
for(var i=0;i//do something using result[i]
};
Of course, web DB's sqlite also supports Insert / select / update / delete / create / drop table
Even more powerful sql statements.