有两个函数wmsys.wm_concat和listagg
1,SELECT wmsys.wm_concat(CATALOG_NAME) FROM "DATASHARE"."RES_CATALOG_CLASSIFY" WHERE PARENT_ID = '2';
2,
SELECT LISTAGG(CATALOG_NAME,',') WITHIN GROUP(ORDER BY CATALOG_NAME) FROM RES_CATALOG_CLASSIFY
WHERE PARENT_ID = '2'
group by PARENT_ID
其中,oracle 11g中两种方法都可以用