摘要: 4. Pivot, Unpivot (参考源) Pivot SELECT * FROM [StudentScores] /*数据源*/ AS P PIVOT ( SUM(Score/*行转列后 列的值*/) FOR p.Subject/*需要行转列的列*/ IN ([语文],[数学],[英语],[生 阅读全文
posted @ 2018-08-02 10:08 h.yl 阅读(163) 评论(0) 推荐(0) 编辑