语句:
delete from 表名 where id not in (select minid from (select min(id) as minid from 表名 group by 字段名) b);