Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于以下查询,我只收到错误:
ORA-00923: 在 DBLINK 中未找到预期的 FROM 关键字。
select LISTAGG(SERVICE_ORDER, ', ') WITHIN GROUP (ORDER BY SERVICE_ORDER) "service_order" FROM TBL_DATA@TBL_REP
Works on 12c(12.1.0.2.0), too:
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)