34,838
社区成员




create view test as
select a.id,a.name,b.age1 as age from a,b where a.id=b.id union all
select a.id,a.name,c.age2 as age from a,c where a.id=c.id
select a.id,a.name,b.age1 as age
from
(select id,age1 from b union all
select id,age2 from c) b
join a on a.id=b.id