我與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