select distinct * into #temp from 表
truncate table 表
insert 表 select * from #temp
drop table #temp