MySQL Forums
Forum List  »  InnoDB

Re: #1064 - 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 'read=1
Posted by: Rick James
Date: November 29, 2012 10:03PM

Here are the reserved words for 5.5:
http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html

No, changing the column name is not the only solution, but it is the best.

You could quote the name with backtics: `read`

And no, that is not the only reason for error 1064.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: #1064 - 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 'read=1
1146
November 29, 2012 10:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.