create table score( name ), math int, english int ); ,); ,); ,); ,); SHOW tables; SELECT * from score; --行列转换: select c2 as '课程', )) '甲', )) '乙', )) '丙', )) '丁' from( select name c1,'math' c2,math c3 from score GROUP BY name union select name,'englis