110,894
社区成员
发帖
与我相关
我的任务
分享
delete from table where id in(select max(id) from table group by chongfuneirong having count(id)>1)
select distinct * into #
from tablename
truncate table tablename
insert tablename
select * from #
drop table #
delete t1 from tb t1 where exists(select 1 from tb where name=t1.name and id<t1,id)