데이터베이스2012. 5. 24. 13:15

SELECT TO_DATE('20080628', 'YYYYMMDD') + LEV - 1 AS RESULT_DATE
FROM (SELECT LEVEL LEV
FROM DUAL
CONNECT BY LEVEL <= (TO_DATE('20080702', 'YYYYMMDD') - TO_DATE('20080628', 'YYYYMMDD')+1)
)

 

Posted by 미랭군