17,140
社区成员




select B.id,B.col1,B.col2,B.col3 from B
union
select A.* from A,B
where A.id not in (select B.id from B)
select b.id, b.col1, b.col2, b.col3 from a, b
where a.id = b.id
union
select a.id, a.col1, a.col2, a.col3 from a
where not EXISTS (select 1 from a, b where a.id = b.id)