标签:
delete from tb1 where id in(select t2.minnum from(select MIN(t1.id) as minnum,t1.col1 as ars ,COUNT(1) as cx from tb1 t1 group by t1.col1)t2)select * from tb1;11 114 217 318 33319 4
删除重复记录的最新sql脚本
原文地址:http://www.cnblogs.com/kexb/p/4492316.html