select user_name,count(*) as count from user_table group by user_name having count>1; 转载于:https://www.cnblogs.com/tl542475736/p/4894937.html