弄了好久,结果发现-------- 因为mysql没有full join这个东西
你只能写成sleect * from A left join B on A.id=B.idunionselect * from A.right join B on A.id=B.id
select person.FirstName,person.LastName,orders.OrderNo
from person LEFT JOIN ordersON person.id_p=orders.Id_p UNIONselect person.FirstName,person.LastName,orders.OrderNo from person RIGHT JOIN ordersON person.id_p=orders.Id_p;