SQL 去重
时间:2014-05-04 17:36:18
收藏:0
阅读:451
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)
原文:http://smilezhuolin.blog.51cto.com/7671611/1405987
评论(0)