Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 列计数与第1行的值计数不匹配_Php_Mysql - Fatal编程技术网

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

Php 列计数与第1行的值计数不匹配,php,mysql,Php,Mysql,删除时,获取列计数等错误与第1行的值计数不匹配 Mysql查询:- DELETE FROM customers WHERE customers.id IN (SELECT cust_id FROM customers_info) 试试这个: DELETE FROM customers WHERE customers.id IN (SELECT GROUP_CONCAT(cust_id) FROM customers_info) 在子查询中使用GROUP_CONCAT()从customers_

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

Mysql查询:-

DELETE FROM customers WHERE customers.id IN (SELECT cust_id FROM customers_info)
试试这个:

DELETE FROM customers WHERE customers.id IN (SELECT GROUP_CONCAT(cust_id) FROM customers_info)
在子查询中使用GROUP_CONCAT()从customers_info表中获取客户id。