can someone help me out quick, I’ve been sitting with this for an hour since this post.
Notes: (null) is a string, not actually a NULL value… Should essentially be the same as using ‘Hello’ as the value
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)
Is there anything wrong with my syntax? Thanks for any insight!
EDIT:
Sorry, thought the error was obvious enough:
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
Aside from the
descbeing a keyword, it is also worth checking the values you specified on the dates. I believe you have exceeded the limit of the date allowed or less than the minimum date allowed. Check first if the statement will succeed with dates being the current date.