mysql 行转列列转行

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

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

相关文章
相关标签/搜索