Oracle:获取一段时间范围内的日期列表

1、格式:2013-01-01 ---2013-01-14
2、代码
select to_date('2013-01-01', ' yyyy-MM-dd ') + rownum - 1
  from user_objects
where rownum <= (to_date('2013-01-14', ' yyyy-MM-dd') -
       to_date('2013-01-01 ', 'yyyy-MM-dd') + 1);

猜你喜欢

转载自sgp420.iteye.com/blog/1769391
今日推荐