单表清除重复数据

delete  from 表名 a where 列名
         in
(
select t.列名 from  
(select
         列名 ,count(*) 
         from 表名
         where 列名 is not null 
         group by 列名
         having count(*) > 1) t
         
)

 

posted @ 2021-05-08 17:12  博客YS  阅读(63)  评论(0编辑  收藏  举报