쿼리를 짜다보니 한번씩 캘린더가 필요한 때가 있다. 검색해보니 동적으로 날짜를 생성해주는 쿼리도 있었다. 아래 쿼리는 2020년1월의 날짜를 출력하는 쿼리이다. 1 2 3 4 5 6 7 8 9 10 11 12 select a.Date from ( select curdate() - INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as Date from (select 0 as a union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all selec..