HQT

追求.NET 技术永无止境

导航

删除重复数据 SQL

Posted on 2005-08-15 17:08  HQT  阅读(415)  评论(0编辑  收藏  举报


删除重复数据

select distinct *
into #temptable
from [yourtable]

delete from  [yourtable]
insert  [yourtable] select * from #temptable
drop table #temptable