sql server 2000 删除重复数据

引用:http://zhidao.baidu.com/question/308051903.html

select distinct *  into # from Tab1 --过滤重复数据并生成临时表#

truncate table Tab1--清空表Tab1

insert TAb1 select * from # --把临时表#数据导入Tab1
posted @ 2012-01-05 23:58  镇水古月  阅读(161)  评论(0编辑  收藏  举报