sql a b两张表如何合并为视图c

2024-11-18 20:20:28
推荐回答(1个)
回答1:

create
or
replace
view
v_c
as
select
DEP_CODE,EM_CODE,A_REASON
as
reason
from
a
union
select
DEP_CODE,EM_CODE,AB_REASON
as
reason
from
b