mysql 数据表中查找重复记录

以下sql语句可以实现查找出一个表中的所有重复的记录

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

 

 

posted @ 2017-05-20 16:05  boystar  阅读(390)  评论(0编辑  收藏  举报