标签:sql user line stp key alt keyword ble for
select
*
from
(
UserName,Subject,Source
TestTable) testpivot(
sum
(Source)
for
Subject
in
(语文,数学,英语)
) pvt
行转列语句,记录一下
原文地址:https://www.cnblogs.com/hn_lijia/p/11823835.html