//初使数据
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 #临时表
//这里临时表作为一个中间过渡的作用