sql语句查询重复值

select * from user where name in (select name from user group by name having count(*)>1)

原文地址:https://www.cnblogs.com/visionwang/p/3317362.html