본문 바로가기
ORACLE

여러 Row를 한Row로

by 리틀홍콩 2015. 11. 11.
728x90

사용 예) - oracle 10g이상에서 사용할 수 있음

select card_status

  from msr_card_master

 where card_status is not null

 group by card_status;

 

 

select WMSYS.WM_CONCAT(CARD_STATUS) AS card_status

  from ( select card_status

           from msr_card_master

          where card_status is not null

          group by card_status 

          order by card_status )

 

 

참고사이트 : http://snoopy81.tistory.com/351

'ORACLE' 카테고리의 다른 글

튜닝수업 (20161127)  (0) 2016.12.27
튜닝수업 (20161126)  (0) 2016.12.26
DBLINK시 LOB CLOB 컬럼오류 해결  (0) 2015.10.05
SQL 튜닝방법론  (0) 2015.09.16
Nested Loop 조인  (0) 2015.09.16

댓글