关于删除重复记录的数据

//初使数据
1 x 1 x 2 y 2 y 2 y 3 z 3 Z 4 U //-----------------删除重复记录后-------------------------- 1 x 2 y 3 z 4 u
//这题用临时表来解决应该会方便的多 当然还有其它办法
select distinct * into #临时表名 from 你的表;
truncate from 你的表

insert into 你的表 from #临时表
//这里临时表作为一个中间过渡的作用

  

posted @ 2013-03-27 10:47  KyrieYang  阅读(171)  评论(0编辑  收藏  举报