delete 表
from 表 a,(select c from 表 group by c having count(*)>1) b
where a.c=b.c这样?

解决方案 »

  1.   

    delete from tb as t1 where t1.t not in(select distinct(t2.c),t2.t  from tb as t2)
      

  2.   

    ctoygl(又高了) ( ) 歌们, 你的语法有错误啊。。
      

  3.   

    comszsoft(星星点灯) ( ) 哥们, 你的语法也有错误啊。
      

  4.   

    delete 表 where c in (select c from 表 group by c having count(*)>1)用这句已经解决了。 谢谢各位。
      

  5.   

    delete table where c in (select c from table group by c having(count(c)>1))你看看给对