delete from TableName where id not in (select minid from (select min(id) as minid from TableName group by RepeatFiled) b);(by sun qiaoqiao)