mysql 数据表中查找重复记录

select user_name,count(*) as count from user_table group by user_name having count>1; 
原文地址:https://www.cnblogs.com/tl542475736/p/4894937.html