17,086
社区成员
发帖
与我相关
我的任务
分享
with t1 as
(
select 1 id, 4 num from dual
union all
select 2 id, 5 num from dual
)
, t2 as
(
select rownum rn from dual connect by rownum <= (select max(num) from t1)
)
select * from t1 a,t2 b
where a.num>=b.rn
order by a.id, b.rn