Oracle 行转列 行合并

select supplier,productno,classname, LISTAGG( lll, , ) within group ( order by className ) as name,
LISTAGG( llk, , ) within group ( order by className ) as llk from 
(
    SELECT * FROM ecy_meter_result
    PIVOT 
    (
        max(value|| ||isok) FOR 
        point IN (直径 as lll,半径 as llk)
    )
)GROUP BY supplier,productno,classname;

 

Oracle 行转列 行合并

上一篇:Mysql索引


下一篇:java 字节流与字符流的区别 (转)