mysql查询字段重复的语句

所有名字重复人的记录是:
select * from emp
where name in ( select name from emp group by name having count(*)>1)

猜你喜欢

转载自blog.csdn.net/qq_42359423/article/details/80709033
今日推荐