行转列:
创建表kecheng,并插入数据
insert into kecheng (id, name, course, score)
values (1, '张三', '语文', 67);...(3, '王五', '历史', 45);
insert into kecheng (id, name, course, score)
values (3, '王五', '化学', 1);
查询该表,...列转行:
创建表score
添加数据:
insert into score(USER_NAME, CN_SCORE, MATH_SCORE, EN_SCORE) values
("张三", 34, 58