mysql查询表里的某一字段的重复数据及数量
select * from (SELECT 字段名,COUNT(1) as c FROM 表名 WHERE 1 = 1 GROUP BY 字段名) s where s.c >1
效果如下:
本文来自博客园,作者:迷糊桃,转载请注明原文链接:https://www.cnblogs.com/mihutao/p/16072966.html
select * from (SELECT 字段名,COUNT(1) as c FROM 表名 WHERE 1 = 1 GROUP BY 字段名) s where s.c >1
效果如下:
本文来自博客园,作者:迷糊桃,转载请注明原文链接:https://www.cnblogs.com/mihutao/p/16072966.html