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

来源:互联网 发布:淘宝商品主图尺寸 编辑:程序博客网 时间:2024/05/29 05:08

check the manual that corresponds to your MySQL server version for the right syntax

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

结果发现是SQL关键字冲突。

可能是经验不够吧。

有个字段名我命名为model_chart,有一个字段为index。在插入的时候update model_chart set index=2,delay=2 where id=1‘

可能index为mysql的关键字。

有个字段名我命名为desc,表示描述(description)。却没有注意到,该desc与SQL查询语句中的降序排列关键字DESC冲突了!

后修改desc为descpt即问题解决!


1 0