标签:sql ota ping success logs str 行转列 语法 ppi
1、行转列 PIVOT函数,行转列,列转换UNPIVOT
select *
from ShoppingCart as C
PIVOT(count(TotalPrice) FOR [Week] IN([1],[2],[3],[4],[5],[6],[7])) AS T
https://www.cnblogs.com/linJie1930906722/p/6036714.html
https://www.cnblogs.com/wlsandwho/p/4423956.html
https://www.cnblogs.com/ylbtech/p/8028808.html
https://www.cnblogs.com/sword-successful/p/4814840.html
2.
标签:sql ota ping success logs str 行转列 语法 ppi
原文地址:https://www.cnblogs.com/cb168/p/10416685.html