--* CLOB Size가 4000 Bytes 이하인 경우, TO_CHAR 또는 TO_CLOB 모두 가능 WITH W_TAB1(AAA) AS (SELECT RPAD('TEXT',4000,'TEXT') FROM DUAL) , W_TAB2(BBB) AS (SELECT TO_CLOB(RPAD('CLOB',4000,'CLOB')) FROM DUAL) SELECT AAA AS VAL FROM W_TAB1 UNION ALL SELECT TO_CHAR(BBB) FROM W_TAB2; --* CLOB Size가 4000 Bytes 초과인 경우, TO_CLOB 로 변환 WITH W_TAB1(AAA) AS (SELECT RPAD('TEXT',4000,'TEXT') FROM DUAL) , W_TAB2(BBB) AS (SELECT TO_CLOB(RPAD('CLOB',4000,'CLOB'))||TO_CLOB(RPAD('CLOB',4000,'CLOB')) FROM DUAL) SELECT TO_CLOB(AAA) AS VAL FROM W_TAB1 UNION ALL SELECT BBB FROM W_TAB2;