Notice
Recent Posts
Recent Comments
Link
목록LISTAGG (1)
이야기앱 세상

여러개 행의 데이터를 구분자를 이용해서 하나의 컬럼으로 표시(LISTAGG 함수 사용) 근무 부서번호와 사원의 이름 출력 select deptno, ename from emp; 같은 부서에 근무하는 사원의 이름을 구분자(,)를 이용해 하나의 컬럼에 표시 select deptno, listagg(ename,',') within group (order by deptno) ename from emp group by deptno;
IT/Database
2019. 6. 26. 09:05