select a.* from table a,table b
where a.id = b.id and a.no b.no
and a.id in (select a.id from table a,table c where a.id=c.id group by a.id having count(*)>2)
你这三个表是同一个表不?
还是你为了简单都写成table了?
还有等于2条的怎么办?
按你的同类信息分组 group by having count(*)>1
使用group by having count(*)>1