Can anyone please tellme why I get this error:
Could not enter data: 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 ')' at line 1
Using this statement:
It enters fine if I insert it using the query panel in MySQL.
INSERT INTO events (start, end) values('2012-12-18 00:00:00','2012-12-20 00:00:00')
Can anyone help?
Just a hunch: try quoting the column names with "back-tick" quotes, in case they are being interpreted as reserved words, e.g.:
INSERT INTO `events` (`start`, `end`) values('2012-12-18 00:00:00','2012-12-20 00:00:00')
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Can I ask how / where you are entering it that it is not working? If in an app of some kind (java, php, etc) possibly show the code around where you are executing it and add the query itself to the error message so that you can determine its formatted exactly as you expect it to be.
Originally Posted by mattastic
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread