order by 할라믄?
select listagg(rows1, ',') within group (order by rows1)
from(
select 'A' rows1 from dual
union
select 'B' rows1 from dual
union
select 'D' rows1 from dual
union
select 'D' rows1 from dual
)
오라클 10g 이상일때 사용가능한 WM_CONCAT...안될땐??
select substr(xmlagg (xmlelement(x,',', rows1) order by rows1).EXTRACT('//text()'),2) rowsString
from(
select 'A' rows1 from dual
union
select 'B' rows1 from dual
union
select 'C' rows1 from dual
union
select 'D' rows1 from dual
)
Oracle SQL*Loader (0) | 2017.09.21 |
---|---|
오라클 테이블 복사 (0) | 2015.02.23 |
ORA-01861: literal does not match format string (0) | 2015.01.15 |
Linux - Oracle 10g 설치하기 (0) | 2010.01.18 |
오라클 9i / 10g용 관리 명령어(sql) 요약 (0) | 2009.09.23 |