MySQL -- 行转列 -- GROUP_CONCAT -- MAX(CASE WHEN THEN)
列转行:利用max(casewhenthen)SELECT`name`,MAX(CASEWHENcourse='语文'THENscoreEND)AS语文,MAX(CASEWHENcourse='数学'THENscoreEND)AS数学,MAX(CASEWHENcourse='英语'THENscoreEND)AS英语FROMstudentGROUPBY`name`;合并字段显示:利用group_ca