首页 > 数据库技术 > 详细

SQL 去重

时间:2014-05-04 17:36:18      阅读:449      评论:0      收藏:0      [点我收藏+]

delete from testtable a where (a.testcontent) in (select testcontent from testtable GROUP BY testcontent having count(*)>1) and seqid not in (select min(seqid) from testtable group by testcontent having count(*)>1)

SQL 去重,布布扣,bubuko.com

SQL 去重

原文:http://smilezhuolin.blog.51cto.com/7671611/1405987

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!