日期:2014-05-18 浏览次数:20519 次
select * from tb where fatherid in ( select fatherid from tb group by fatherid having count(*) > 1 )
------解决方案--------------------
--存在主键字段,假设为Id select * from tb t where exists (select 1 from tb where fatherid=t.fatherid and id<>t.id)