본문 바로가기

database/oracle

여러 row를 하나의 row로 출력

SELECT WMSYS.WM_CONCAT (MESSAGE) MESSAGE
  FROM (SELECT LO.MESSAGE MESSAGE
          FROM SMEIS.S_LECTUREOPINION LO
         WHERE     LO.YEAR = '2014'
               AND LO.SEASONCODE = '11'
               AND LO.SUBJECTCODE = '380031'
               AND LO.DIVISION = '12'
               AND MESSAGE IS NOT NULL)