查询user表中,user_name字段值重复的数据及重复次数
select user_name,count(*) as count from user group by user_name having count>1;
本文共 164 字,大约阅读时间需要 1 分钟。
查询user表中,user_name字段值重复的数据及重复次数
select user_name,count(*) as count from user group by user_name having count>1;
转载于:https://www.cnblogs.com/void9main/p/9370337.html