qshhq

--行变列
select * from (select a,b,c from table) aa
pivot( SUM(c) FOR b IN ()) bb
order by a
--列变行
SELECT a,b,c from table
unpivot(c for b in())as aa
order by a

分类:

技术点:

相关文章:

  • 2021-12-10
  • 2021-12-15
  • 2022-02-06
  • 2021-07-13
  • 2021-08-26
  • 2021-05-28
  • 2021-06-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-22
  • 2021-06-23
  • 2021-12-30
  • 2021-12-11
  • 2021-12-30
  • 2022-12-23
相关资源
相似解决方案