MySQL遇到check the manual that corresponds to your MySQL server version for the right syntax错误

时间:2021-04-21 22:53:10

用MySQL新建了一个Order表,插入了一条数据。总是显示

 

 

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 'order
' at line 1

 

 

 的错误,开始还以为是mysql什么版本的问题。用Navicat for MySQL查看里面也是有数据的,这是神马原因呢。找了半天将表名改成了t_order,里面类似关键字的字段也进行了重命名结果就OK了。

 

原来是MySQL表中不能包含关键字啊。。。一个小疏忽害得我晕了半天MySQL遇到check the manual that corresponds to your MySQL server version for the right syntax错误