SQL去除重复数据

筛选重复数据

select * from 表名 where rowid not in (select min(rowid) from 表名 group by 重复判断字段)

删除重复数据

delete from 表名 where rowid not in (select min(rowid) from 表名 group by 重复判断字段)

posted @ 2021-12-06 11:24  百花小松  阅读(298)  评论(0)    收藏  举报