sql函数pivot条件汇总

Posted on 2018-08-14 09:30  zhuyu123  阅读(309)  评论(0编辑  收藏  举报

select * from a pivot(sum([总业绩]) for 周期 in ([1月],[2月],[3月],[4月])) as b

Copyright © 2024 zhuyu123
Powered by .NET 9.0 on Kubernetes