Home > database >  Thank you, transfer line column, the following is essentially a grammar into ORACLE how to write
Thank you, transfer line column, the following is essentially a grammar into ORACLE how to write

Time:09-22

Thank you, the following line is used to turn column grammar into ORACLE how to write?


Select * INTO # DHPJPM from # MDCPM pivot (Max (PM) FOR mdccode (MDCA, MDCB MDCZ)) in A
The select yydm,
Case the when ISNULL (MDCA, ' ')='THEN @ num else MDCA end MDCA,
Case the when ISNULL (MDCB, ' ')='THEN @ num else MDCB end MDCB,
Case the when ISNULL (MDCZ, ' ')='THEN @ num else MDCZ end MDCZ
INTO # PM
The from # DHPJPM

  • Related