Oracle SQL,6张表如何建立视图
发布网友
发布时间:2022-12-21 08:32
我来回答
共1个回答
热心网友
时间:2023-10-10 01:25
不是很懂你的表之间的关系?
猜一下:
create or replace view v_name
as
select t1.ID, t1.NAME, t2.KSTIME, t2.JSTIME, t2.LX
from
(
select * from B1
union all
select * from B2
union all
select * from B3
) t1,
(
select * from S1
union all
select * from S2
union all
select * from S3
) t2
where t1.ID=t2.MID