首页 > 试题广场 >

给定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;

不匹配意为null
发表于 2022-08-23 21:08:16 回复(0)
使用 left join...on... , "B.ID isnull" 表示左连接之后在B.ID 字段为 null的记录
发表于 2022-04-18 10:41:50 回复(0)