【发布时间】:2014-07-05 01:45:11
【问题描述】:
我遇到了这样的问题:
UPDATE `database` SET `col1` = 0 WHERE `col2` in (1,2,3,4);
以下是实际失败的查询。
Error Message:
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 '@cc3.biz, sales@allservico.com)' at line 1
SQL:
UPDATE `CubeCart_customer` SET `optIn1st` = 0 WHERE `email` in (markscarts@cc3.biz, sales@allservico.com);
我已经搜索了网络和此处,并尝试了我的代码中的几种变体来生成查询,但我无法确定我失败的地方。
我们将不胜感激。
【问题讨论】: