반응형

SELECT TO_CHAR(ADD_MONTHS(TO_DATE('201501', 'YYYYMM'), LEVEL-1), 'YYYYMM') AS YYYYMM

FROM DUAL

CONNECT BY LEVEL <= ROUND(MONTHS_BETWEEN(ADD_MONTHS(TO_DATE('201512', 'YYYYMM'), 1), TO_DATE('201501', 'YYYYMM')))

반응형

WRITTEN BY
데르벨준

,