日期:2014-05-16 浏览次数:20564 次
select a.id,rate, a.start_date, a.end_date, a.start_date+b.dis-1 h from test a, (select rownum dis from (select max(end_date-start_date)+1 gap from test) connect by rownum<=gap) b where a.end_date>=a.start_date+b.dis-1 order h