在将行转换为列时遇到问题

时间:2015-06-25 12:37:33

标签: mysql

![在此处输入图片说明] [1] 在下面的图中显示了实际的表格数据

typename

并希望将行转换为列数据

"Year  Month  Item_Name  Office_Name  Issued Issued_Amount
2014    1     Blank C.D    CEO         2     5.0
2014    1     Blank C.DR   CEO         3     6.0
2014    1     Box File     CEO         4     10.0
2014    1     Strip file   CEO         5     50
2014    1     Blank C.D    TC          4     20.0
2014    1     Blank C.DR   TC          2     50.0
2014    1     Box File     TC          3     10.0
2014    1     Strip file   TC          7     70.0
2014    1     Blank C.D    B_D          4     40.0
2014    1     Blank C.DR   B_D          5     50.0
2014    1     Box File     B_D          6     30.0
2014    1     Strip file   B_D          8     20

喜欢这个 这个我的代码但我无法获得正确的结果

0 个答案:

没有答案