表A 和表B 中 同一个字段的信息
select a.字段,b.字段 from A a left join B b on a.关联=b.关联 where 条件
也可以这样 不重复
select a.字段,0 from A a where 条件
union
select 0,b.字段 from B b where 条件
重复
select a.字段,0 from A a where 条件
union all
select 0,b.字段 from B b where 条件
温馨提示:答案为网友推荐,仅供参考