摘要:
pivot 可以把列值转换为输出中的多个列。 pivot 可以在其他剩余的列的值上执行聚合函数。 unpivot 将列转换为列值 语法 SELECT <non-pivoted column>, [first pivoted column] AS <column name>, [second pivo 阅读全文
posted @ 2022-09-12 14:32
洞幺人生
阅读(304)
评论(0)
推荐(0)
摘要:
select c.score,sum(c.ccount)from (select b.n ,b.score,count(1) ccount from (select unpriots.n,unpriots.score from (select cdate,n1,n2,n3,n4,n5,n6,n7,n 阅读全文
posted @ 2022-09-12 13:40
洞幺人生
阅读(427)
评论(0)
推荐(0)
浙公网安备 33010602011771号