我正在使用cordova 1.9開發phonegap應用程序。
我對這個語句的語法錯誤:Phonegap「near」。「」上的Sqlite錯誤:「語法錯誤」
db.executeSql('UPDATE Reminder SET Reminder.reminderName ="'+ reminder_name + '", Reminder.reminderDescription = "' + description +'", Reminder.cellId='+ 1 +', Reminder.timetableId ='+1+', Reminder.reminderDeadline ="' + deadline +'" WHERE Reminder.RminId = "'+reminderId+'" ');
所以,我想知道我究竟做錯了什麼?
不知道PhoneGap的,但如果這是在所有標準的SQL,然後我會交換單引號和雙引號。 SQL需要單引號,不是? (另外,這裏也有人對這個巨大的SQL注入安全漏洞發表評論) – 2012-07-24 08:16:31