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

时间:2023-03-09 18:42:41
MySQL遇到check the manual that corresponds to your MySQL server version for the right syntax错误

用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中不能包含关键字。

另外就是看看你的sql语言是否少写了“,”逗号。