謝謝,如下是SQLSERVER行轉列語法 轉換成ORACLE怎么寫?
select * INTO #dhpjpm from #mdcpm pivot(max(pm) FOR mdccode in (MDCA,MDCB,MDCZ)) A
select yydm,
case when ISNULL(MDCA,'')='' THEN @num else MDCA end MDCA,
case when ISNULL(MDCB,'')='' THEN @num else MDCB end MDCB,
case when ISNULL(MDCZ,'')='' THEN @num else MDCZ end MDCZ
INTO #PM
from #dhpjpm
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/66590.html
標籤:開發
上一篇:Mysql架構
下一篇:MySQL,優化查詢的方法
