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

  

相关文章:

  • 2021-11-29
  • 2021-06-25
  • 2022-01-15
  • 2021-12-29
  • 2021-09-04
  • 2022-02-03
  • 2021-07-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-03-10
  • 2021-06-27
  • 2021-09-11
相关资源
相似解决方案