You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use

来源:互联网 发布:飞飞cms影视系统 编辑:程序博客网 时间:2024/04/19 02:14

在使用MYSQL更新数据的时候出现

 

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

 

 

 解决方案--》最后执行查询的SQL语句应该是下面的样子:
SELECT *FROM renshiguanliWHERE GH=13
表名和关键字WHERE之间应该有空格的。
在WHERE之前加个空格试试。

原创粉丝点击