【发布时间】:2012-02-29 11:02:23
【问题描述】:
有人可以帮我快速解决吗,自从这篇文章以来,我已经坐了一个小时。
注意:(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
【问题讨论】:
-
给出的错误是什么?
-
您遇到了哪些 SQL 错误?
标签: java mysql syntax jax-ws insert-into