求SQL语句删除标题重复的记录 select min(id),title from t group by title 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delete id not in 楼上说的那些就出来了。 我这样写的,出错啊delete from t where id not in(select min(id),title from t group by title)提示:当没有用EXISTS引入子查询时,在选择列表中只能指定一个表达式 delete from t where id not exists (select min(id),title from t group by title) select min(id) from t t1,t t2where t1.title = t2.titleand t1.id <> t2.idgroup by title就找到你上面表中所有重复的最小id,然后就看你怎么删除了 delete from t where id not in(select min(id) from t group by title) 在线急求`在线等回``` 导入数据遇主键重复的问题 sql server触发器修改主键 怎么吧SQLServer中的“Data Transformation Services”中的Packages 数据 导入导出 大小写敏感问题 如何在存储过程里写这种select语句 有偿找人帮解决SQL2000的问题 关于sql统计分组时如何将未统计到的列显示为0 存儲過程問題? 急,SQL数据转换,神阿救救我吧 求助!!! 我用powerdesign设计表,但我选字段数据类型时没找到autoincrement一项,为什么,我该如何完成
delete from t where id not in(select min(id),title from t group by title)提示:当没有用EXISTS引入子查询时,在选择列表中只能指定一个表达式
where t1.title = t2.title
and t1.id <> t2.id
group by title
就找到你上面表中所有重复的最小id,然后就看你怎么删除了