.html()
有人可以解释为什么我会听到语法错误我遵循sql教程
答案 0 :(得分:3)
每行末尾都缺少空格:
"UPDATE TrailerLocationMaster " +
// ^ added space
"SET Block = ?, Location = ?, Day = NOW(), SetTime = NOW(), Comment = ? " +
// ^ added space
"Where Trailer = ?;");
答案 1 :(得分:2)
您的查询字符串是
UPDATE TrailerLocationMasterSET Block = ?, Location = ?, Day = NOW(), SetTime = NOW(), Comment = ?Where Trailer = ?;
请注意,TrailerLocationMaster和SET之间以及之间没有空格?和在哪里。
纠正它们,它应该有效