DA/튜닝

[DA/튜닝] 날짜 Table 생성

bbugge 2019. 7. 18. 09:19

ORACLE

DROP TABLE DT_TABLE PURGE;
CREATE TABLE DT_TABLE
AS
SELECT TO_DATE(:min_date,'YYYYMMDD')+level-1 AS DATES
FROM DUAL
CONNECT BY LEVEL <= TO_DATE(:max_date,'YYYYMMDD')-TO_DATE(:min_date,'YYYYMMDD');