查询表中重复数据

来源:互联网 发布:现实中网络女主播好丑 编辑:程序博客网 时间:2024/06/02 22:44

 

select count(studentcode),studentcode from gen_studentinfo2 group by studentcode having  count(studentcode) > 1

 

 

select * from people where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1)

原创粉丝点击