none
求sql语句 查找重复记录 RRS feed

答案

  • 如果你想要取出 a,b,c三列,可以用下面的查询

    select TB.*
    from [table],
     	(select a,b
    	from [table]
    	group by a,b
    	having count(a+b) >1
    	) TB_Tmp
    where [table].a=TB_Tmp.a and [table].b=TB_Tmp.b
    2009年10月21日 5:03
    版主

全部回复