获取日期列表:
SELECT trunc(to_date('2017-02-21 00:00:00','yyyy-mm-dd hh24:mi:ss'),'dd') - ROWNUM FROM DUAL CONNECT BY ROWNUM <= to_date('2017-02-21 00:00:00','yyyy-mm-dd hh24:mi:ss') - to_date('2017-02-11 00:00:00','yyyy-mm-dd hh24:mi:ss')
同理可写出月份,年份。
原文链接:https://www.f2er.com/oracle/210482.html