2021年5月14日
摘要: 行转列 1.oracle的pivot函数 原表 使用pivot函数: with temp as(select '四川省' nation ,'成都市' city,'第一' ranking from dual union allselect '四川省' nation ,'绵阳市' city,'第二' r 阅读全文
posted @ 2021-05-14 15:51 蜗牛也是妞 阅读(186) 评论(0) 推荐(0)
摘要: 方案一:wm_concat函数 select username, id, wmsys.wm_concat(subject) as subject, wmsys.wm_concat(score) as score from STUDENTSCORES group by username, id 方案二 阅读全文
posted @ 2021-05-14 14:10 蜗牛也是妞 阅读(4705) 评论(0) 推荐(0)