表T中有字段id,name,age(注:id有相同值) 查询id相同且大于1的数据记录
select * from T a where exists (select id from T where id=a.id group by id having count(*)>1)
select * from T a where exists (select id from T where id=a.id group by id having count(*)>1)