db.
transaction(tx) {
doQuery(tx, "SELECT * FROM TABLE",[],theSuccessHandler)
});

function doQuery(tx, query, values, successHandler) {
tx.executeSql(query, values, successHandler, errorHandler);
function errorHandler(transaction, error) {
alert("Error : " + error.message + " in " + query);
}
}


http://hangaebal.blogspot.kr/2014/06/web-sql-error-handling.html

http://stackoverflow.com/questions/16559832/how-to-get-the-context-of-a-web-sql-error

'Blogger 이사' 카테고리의 다른 글

[SQLite] Web SQL search on dates  (0) 2016.01.14
[SQLite] SQLite Syntax Documentation  (0) 2016.01.14
[JavaScript] String Object Methods  (0) 2016.01.14
[SQL] SQL get last row  (0) 2016.01.14
[JavaScript] key, value Array Sort  (0) 2016.01.14

+ Recent posts