开发者

How to rotate records

开发者 https://www.devze.com 2023-03-25 09:39 出处:网络
I have two columns (A and B) in a table: column_A开发者_运维知识库column_B 10alb 13clk 22mbr I am looking for a solution which would return:

I have two columns (A and B) in a table:

column_A   开发者_运维知识库   column_B
   10           alb
   13           clk
   22           mbr

I am looking for a solution which would return:

column_A        10      13     22
column_B        alb     clk    mbr

How can I achieve this?

I don't know the number of source rows - it will change dynamically.


Try the "Pivot tables" section of this web page: http://www.artfulsoftware.com/infotree/queries.php

0

精彩评论

暂无评论...
验证码 换一张
取 消