Oracle 高级使用整理:
1、with As的使用
with tt as
(select 2080 t_vendor_id from dual
union all
select 80 t_vendor_id from dual
union all
select 81 t_vendor_id from dual
)
select * from Po_Vendors pv,tt
where
pv.VENDOR_ID = tt.t_vendor_id;
with tt as
(select 2080 t_vendor_id from dual
union all
select 80 t_vendor_id from dual
union all
select 81 t_vendor_id from dual
)
select * from Po_Vendors pv,tt
where
pv.VENDOR_ID = tt.t_vendor_id;