对于以下查询,我只收到错误:
ORA-00923:在DBLINK中找不到FROM关键字。
select LISTAGG(SERVICE_ORDER, ', ') WITHIN GROUP (ORDER BY SERVICE_ORDER)
"service_order"
FROM TBL_DATA@TBL_REP
答案 0 :(得分:0)
也适用于12c(12.1.0.2.0):
SELECT LISTAGG (SERVICE_ORDER, ', ') WITHIN GROUP (ORDER BY SERVICE_ORDER)
"service_order"
FROM (SELECT 'a' SERVICE_ORDER FROM DUAL
UNION ALL
SELECT 'b' SERVICE_ORDER FROM DUAL
UNION ALL
SELECT 'c' SERVICE_ORDER FROM DUAL)