Question

In HTML5 webSQL am running SELECT query within a transaction object.

Why do i need to wrap it in a transaction?

is there any alternative way to run it without transaction?

db.transaction(function(tx) { 
  tx.executeSql('SELECT id FROM username', [], function(tx, rs){
    ...
    ...

  });
});

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top