ERROR 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax***
This error generally occurs when the mysql keyword appears in the table name or field name design process. For example, suppose I misused the keyword code to make a field name. In MSSQL, the keyword needs to be enclosed in '[ ]'. That is [code ]
In Mysql, I found some information and used `code` when using it. If you don't look carefully, you must think it is a single quotation mark. I thought so at first, but after practice, I found that the single quotation mark could not pass the verification.
Later, after looking for a detailed description, I realized that it is not a single quotation mark but the line of number keys above the English letters. There is a key to the left of the number key, the top is ~, and the bottom is this key .
reprint
http://www.cnblogs.com/shaocm/archive/2012/05/22/2513625.html