Mysql查询某字段值重复的数据

原文地址为: Mysql查询某字段值重复的数据

查询user表中,user_name字段值重复的数据及重复次数

select user_name,count(*) as count from user group by user_name having count>1;

转载请注明本文地址: Mysql查询某字段值重复的数据

猜你喜欢

转载自blog.csdn.net/a13036139941/article/details/81782871