把表B作为主表,用right join 或者full join
select * from a left join b on a.??? = b.???
LEFT join不就可以了·····
好歹有个表结构什么的吧 这样怎么回答?