sql怎么写?
两个表使用full join 关联即可。
select * from A left join B on A.a = B.aunionselect * from A right join B on A.a = B.a;你试试看看