SQL查询重复记录

例:

 

select * from employee
where emp_name in (select emp_name from employee group by emp_name having count(emp_name) > 1)

 

posted @ 2021-09-16 11:23  云村的王子  阅读(39)  评论(0编辑  收藏  举报