标签:
出现这个结果:
sql如下:
1 SELECT y ,sum(case jidu when 1 then sales else 0 end) as yijidu,sum(case jidu when 2 then sales else 0 end) as erjidu from a GROUP BY y;
sql行列互换
原文地址:http://www.cnblogs.com/cathyqq/p/5231801.html