有人可以帮我快速出来,自从这篇文章以来,我一直坐在这里一个小时。INSERT INTO语法看起来正确,但仍然失败
注:(空)是一个字符串,实际上不是一个NULL值...基本上应该是一样的用“你好”作为价值
INSERT INTO tasks (category,completion_dtm,desc,duedate,notification_duedate,notification_one,notification_two,priority,reminder_one,reminder_two,title,timestamp) VALUES('None','3999-01-01 00:00:00','(null)',('1000-01-01 00:00:00'),'(null)','(null)','(null)',2,('1000-01-01 00:00:00'),('1000-01-01 00:00:00'),'Task 3',('1000-01-01 00:00:00')) ON DUPLICATE KEY UPDATE id=VALUES(id)
这有什么错我的语法?感谢您的任何见解!
编辑: 对不起,认为错误是明显不够:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc,duedate,notification_duedate,notification_one,notification_two,priority,rem' at line 1
给出的错误是什么? – Dervall 2012-02-29 11:04:17
你得到了什么SQL错误? – 2012-02-29 11:04:45