【发布时间】:2018-11-26 10:55:13
【问题描述】:
SELECT deptno, LISTAGG(ename, ',') WITHIN GROUP (ORDER BY ename) AS employees
FROM emp
GROUP BY deptno;
Error:-
ORA-00923: FROM keyword not found where expected
00923. 00000 - "FROM keyword not found where expected"
*Cause:
*Action:
Error at Line: 1 Column: 42
Oracle 数据库 11g 企业版版本 11.1.0.7.0 - 64 位生产
【问题讨论】:
-
请详细说明错误。当我在 11g 数据库上执行查询时,它显示的结果没有任何错误
-
很可能,数据库版本不是 11g 或更高版本。
wm_concat是LISTAGG的替代品 -
我同意@Jacob - 您使用的是哪个版本的 Oracle?
-
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
标签: sql oracle oracle11g listagg