mysql 行转列列转行

行转列用group_concat() 列转行用Max (case when name = 'value' then key else 0 end) 参考网址: http://www.noobyard.com/article/p-rhohcdfa-hk.htmlhtml

用函数pivot和unpivot 参考网址: http://www.noobyard.com/article/p-bezvqbem-gy.html函数