close

Sqlplus / as sysdba

SQL> @$ORACLE_HOME/rdbms/admin/owminst.plb

執行完後即可使用WM_CONCAT

 

這是10g 沒有被public 的函式 ,

R12 db預設沒安裝

Db 11g r2 有新的聚合函式listagg 可取代~

 
試試吧~~
select WMSYS.WM_CONCAT(to_char(ITEM_ID)) from po_lines_all

 where  po_header_id =236091

 group by po_header_id
=====================================

WMSYS.WM_CONCAT(to_char(ITEM_ID))

2840,2849,2917,2670,2853,2842,2835,162161,2836,2838,2856,2593,2885

arrow
arrow
    全站熱搜

    Nolem 發表在 痞客邦 留言(0) 人氣()