SQL实现数据结构纵向转换

    xiaoxiao2022-06-23  21

     

     

    select olnID as流水号,max(case when ftrID=3764 then olnoValue end) 深 ,                        max(case when ftrID=3765 then olnoValue end) 高,                        max(case when ftrID=3766 then olnoValue end) 宽                        from  dbo.OrderLineOptions  group by olnID  

    转载请注明原文地址: https://ju.6miu.com/read-1123446.html

    最新回复(0)