1. 程式人生 > >oracle 查詢指定日期到現在的日期包含的天

oracle 查詢指定日期到現在的日期包含的天

select  date'2017-01-01' + (rownum - 1) curdate  from  dual connect by rownum <= (sysdate - date'2017-01-01' + 1)