示例代码如下:
create table tmp as select min(主键) as col1 from 去重表名 GROUP BY 去重字段; delete from 去重表名 where 主键 not in (select col1 from tmp); drop table tmp;
时间: 2025-01-02 06:09:55
示例代码如下:
create table tmp as select min(主键) as col1 from 去重表名 GROUP BY 去重字段; delete from 去重表名 where 主键 not in (select col1 from tmp); drop table tmp;