列数与第1行的值计数不匹配

时间:2014-12-24 06:01:00

标签: php mysql

删除时,获取列数等错误与第1行的值计数不匹配

Mysql查询: -

DELETE FROM customers WHERE customers.id IN (SELECT cust_id FROM customers_info)

1 个答案:

答案 0 :(得分:0)

试试这个:

DELETE FROM customers WHERE customers.id IN (SELECT GROUP_CONCAT(cust_id) FROM customers_info)