快活林资源网 Design By www.csstdc.com
复制代码 代码如下:
select rownum as dateIndex,to_date('20090701','yyyy-mm-dd')+ rownum-1 AS DATE_ FROM DUAL CONNECT BY LEVEL >= 1 AND LEVEL <=(TO_DATE('20090731','yyyy-mm-dd')-TO_DATE('20090701','yyyy-mm-dd')+1)


result:

1 2009/07/01
2 2009/07/02
3 2009/07/03
4 2009/07/04
5 2009/07/05
6 2009/07/06
7 2009/07/07
8 2009/07/08
9 2009/07/09
10 2009/07/10
11 2009/07/11
12 2009/07/12
13 2009/07/13
14 2009/07/14
15 2009/07/15
快活林资源网 Design By www.csstdc.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
快活林资源网 Design By www.csstdc.com