给定A和B两张表,查询B表中和A表不匹配的所有行数据的语句是
给定A和B两张表,查询B表中和A表不匹配的所有行数据的语句是
select * from A right outer join B on A.id=B.id where A.id is null;
select * from A left outer join B on A.id=B.id where B.id is null;
select * from A right outer join B on A.id=B.id where A.id is not null;
select * from A left outer join B on A.id=B.id where B.id is not null;