一、SQL语句:
select to_date(to_char(to_date('2017-10-01', 'yyyy-mm-dd') + rownum - 1,
'yyyy-mm-dd'),
'yyyy-mm-dd') as updatedate
from dual
connect by rownum <=
trunc(to_date('2017-10-31', 'yyyy-mm-dd') -
to_date('2017-10-01', 'yyyy-mm-dd')) + 1
二结果: