사용자 도구

사이트 도구


oracle:wm_concat

문서의 이전 판입니다!


WM_CONCAT

Hi tom, when i tried use this wm_concat() function in 12c i'm getting this error can you briefly explain?

ORA-00904: “WM_CONCAT”: invalid identifier 00904. 00000 - “%s: invalid identifier and we said… WM_CONCAT is gone in 12c.

Use LISTAGG instead

SQL> SELECT deptno, listagg(ename, ',') WITHIN GROUP (ORDER BY ename) AS employees
  2  FROM   emp
  3  GROUP BY deptno;
 
    DEPTNO EMPLOYEES
---------- ------------------------------------------------------------
        10 CLARK,KING,MILLER
        20 ADAMS,FORD,JONES,SCOTT,SMITH
        30 ALLEN,BLAKE,JAMES,MARTIN,TURNER,WARD
oracle/wm_concat.1540865160.txt.gz · 마지막으로 수정됨: 2025/04/15 10:05 (바깥 편집)