以下是查询:
INSERT INTO jobemails (jobid, to, subject, message, headers, datesent) VALUES ('340', 'jrhodes@jhu.edu', 'We\'ve received your request for a photo shoot called \'another\'.', 'message', 'headers', '2010-04-22 15:55:06')
数据类型都是正确的,它总是在主题上失败,所以它必须是我如何转义值,我假设。
我相信你们中的一个人会马上看到我的白痴错误。一点帮助?
答案 0 :(得分:8)
SQL从行到函数混淆'到'。
尝试:
INSERT INTO `jobemails` (`jobid`, `to`, `subject`, `message`, `headers`, `datesent`) VALUES ('340', 'jrhodes@jhu.edu', 'We\'ve received your request for a photo shoot called \'another\'.', 'message', 'headers', '2010-04-22 15:55:06')