MySQL 查询重复数据

表:crawler_kol_top
重复字段:commodity_name

SELECT * FROM crawler_kol_top a WHERE ((SELECT COUNT(*) FROM crawler_kol_top WHERE commodity_name = a.commodity_name) > 1) ORDER BY commodity_name DESC

你可能感兴趣的:(MySQL 查询重复数据)