查询MySQL中某一个字段出现2次以上
HAVING COUNT(字段)统计表中某一字段出现的次数
SELECT 字段 FROM 表 GROUP BY 字段 HAVING COUNT(字段) > 1
SELECT * FROM 表 WHERE 字段 IN(SELECT 字段 FROM 表 GROUP BY 字段 HAVING COUNT(字段) > 1)
HAVING COUNT(字段)统计表中某一字段出现的次数
SELECT 字段 FROM 表 GROUP BY 字段 HAVING COUNT(字段) > 1
SELECT * FROM 表 WHERE 字段 IN(SELECT 字段 FROM 表 GROUP BY 字段 HAVING COUNT(字段) > 1)