时间区间可以自定义传参,只需将sql中的时间替换就好
select to_char(TO_DATE ('2020-04-01', 'yyyy-mm-dd') + rownum-1,'YYYY-MM-DD') ,rownum from ( select rownum from dual
connect by rownum <= (TO_DATE ('2020-05-01', 'yyyy-mm-dd') - TO_DATE ('2020-04-01', 'yyyy-mm-dd')) );