我与follwoing字段一个MySQL表更新MySQL表:在上述顺序我运行follwoing误差与滤波器
update match1 set weight = 5 where desc = 'fat' and id != '6';
follwoing
id, desc, value, people, amount, weight
是错误消息我得到:
**#1064 - 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 'desc = 'bat' and id = 6' at line 1
有人可以请让我知道这是怎么回事?
确定你运行相同的查询,错误是'desc ='bat'和id = 6',代码中是desc ='fat'和id!='6' ? – 2011-04-17 08:14:28