参考 http://www.2cto.com/database/201506/404733.html

 

select to_char(to_date('2016-12-07', 'yyyy-mm-dd') + rownum - 1,
               'yyyy-mm-dd') as daylist
  from dual
connect by rownum <=
           trunc(sysdate - to_date('2016-12-07', 'yyyy-mm-dd')) + 1;

 

posted on 2017-08-29 10:54  time_on  阅读(4881)  评论(0编辑  收藏  举报