delete 表名 where 字段=值

解决方案 »

  1.   

    delete from table where 字段 in (select 字段 from
    (select 字段,count(*) cou from table group by 字段) temp where cou>1)
      

  2.   

    可能用distinct 和 group by 组合就可以了。
      

  3.   

    你的问题有点模糊删除纪录的话用 delete from table where 字段 = 直,就行了select ziduan from table where ziduan = "values" group by ziduan
      

  4.   

    delete from tablename where colname in (select colname from tablename group by colname having count(colname)>1)
      

  5.   

    distinct解决不了你的问题吗?
      

  6.   

    是全部去掉还是留一个?
    全部:
    delete tablename 
    where colname in (select colname 
                      from tablename 
                      group by colname
                      having count(*)>1)