Unsolved LocalStorage 2.0: How can i make a query to update datas?
-
var db = LocalStorage.openDatabaseSync("ExampleDatabase", "", "Something", 1000000);
db.transaction(
try {
function(tx) {
tx.executeSql('UPDATE someTable SET( Column0 = ?,Column1 = ? )', [ 'someData1', 'someData2' ]);
}
} catch (err) {
console.log("Error inserting into table Greeting: " + err);
}
)when it is execute, it always detect the sql error why?
-
obs, i want update the datas in my table
-
Try out the example which is available in below given blog. This may give you some idea about how to use Local storage queries.
and the code available here.