w
SELECT COUNT(*) FROM ( SELECT COUNT(*) FROM listing_vary_asins GROUP BY asin, countrycode ) AS w; SELECT COUNT(*) FROM listing_vary_asins GROUP BY asin, countrycode;
分类 统计 去重
SELECT MIN(id) as min_id ,COUNT(1) AS c FROM parent_url_copy GROUP BY CONCAT(page_url,children_url)
DELETE FROM parent_url_copy WHERE id IN ( SELECT min_id FROM ( SELECT MIN(id) AS min_id, COUNT(1) AS c FROM parent_url_copy GROUP BY CONCAT(page_url, children_url) ) AS tab WHERE c > 1 );