416 B
416 B
Show ResultSet Types:cte
oracle
with aa as
(
select country_id ,row_number() over(order by country_id ) as ida
from contry a
)
, bb as
(
select country_id ,row_number() over(order by country_id ) as idb
from contry
)
, cc as
(
select aa.ida, bb.idb from aa left join bb on aa.ida=bb.idb
)
select * from cc;
显示前:
显示后:

