有人可以快速帮助我吗,自从这篇文章以来,我已经坐了一个小时。
注意: (null) 是一个字符串,实际上不是一个 NULL 值...应该本质上与使用 'Hello' 作为值相同
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