当前位置: 数据库>sqlserver
SQL 返回期间内的所有日期
来源: 互联网 发布时间:2014-09-05
本文导语: 代码如下:select rownum as dateIndex,to_date('20090701','yyyy-mm-dd')+ rownum-1 AS DATE_ FROM DUAL CONNECT BY LEVEL >= 1 AND LEVEL
代码如下:
select rownum as dateIndex,to_date('20090701','yyyy-mm-dd')+ rownum-1 AS DATE_ FROM DUAL CONNECT BY LEVEL >= 1 AND LEVEL