参考 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;
参考 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;
转载于:https://www.cnblogs.com/time-on/p/7447210.html