oracle 的写法,请高手指教!高分! 数据库有数据
id beginDate endDate
1 2013-08-01 2013-08-04
查询出结果、可用函数等等
id Date
1 2013-08-01
1 2013-08-02
1 2013-08-03
1 2013-08-04
------解决方案--------------------
with
t as (select 1 id,date '2013-08-01'beginDate, date '2013-08-04'endDate from dual)
select id,beginDate+level-1
from t
connect by level<=endDate-beginDate+1