select min(id),title from t group by title

解决方案 »

  1.   

    delete id not in 楼上说的那些就出来了。
      

  2.   

    我这样写的,出错啊
    delete from t where id not in(select min(id),title from t group by title)提示:当没有用EXISTS引入子查询时,在选择列表中只能指定一个表达式
      

  3.   

    delete from t where id not exists (select min(id),title from t group by title)
      

  4.   

    select min(id) from t t1,t t2
    where t1.title = t2.title
    and t1.id <> t2.id
    group by title
    就找到你上面表中所有重复的最小id,然后就看你怎么删除了
      

  5.   

    delete from t where id not in(select min(id) from t group by title)