日期:2014-05-17 浏览次数:20797 次
with t as
(select 1 id, 1 num, 1 flag
from dual
union all
select 1 id, 2 num, 2 flag
from dual
union all
select 1 id, 3 num, 3 flag
from dual
union all
select 2 id, 1 num, 1 flag
from dual
union all
select 3 id, 1 num, 1 flag
from dual
union all
select 3 id, 2 num, 2 flag
from dual
union all
select 4 id, 1 num, 1 flag
from dual
union all
select 4 id, 2 num, 3 flag
from dual
union all
select 6 id,