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 '=0 where id= 22' at line 1
谢谢
------解决方案--------------------------------------------------------
SQL 语法存在错误。估计你要把完整SQL打印出来检查下。
------解决方案--------------------------------------------------------
语法有错误。
------解决方案--------------------------------------------------------
=0 where id= 22
前面有个=0 后面又有个where 应该是什么=0 and id = 22吧
应该是where 什么=0 and id=22吧
关键还是看你sql是什么了。