示例代码如下:
create table tmp as select min(主键) as col1 from 去重表名 GROUP BY 去重字段;
delete from 去重表名 where 主键 not in (select col1 from tmp);
drop table tmp;
示例代码如下:
create table tmp as select min(主键) as col1 from 去重表名 GROUP BY 去重字段;
delete from 去重表名 where 主键 not in (select col1 from tmp);
drop table tmp;