mysql删除重复的数据

select  field ,count(1)  from   table group by filed  having count(1)>1  t
查找出你要删除的数据
delect from table where filed not  in  
select  t.field
(
 (select  field  from   table group by filed  having count(1)>1 )t
)

 

posted @ 2021-11-20 23:12  余生请多指教ANT  阅读(37)  评论(0编辑  收藏  举报