当前位置:首页>维修大全>综合>

oracle怎么在b表查找a表没有的值(oracle怎么查询表空间)

oracle怎么在b表查找a表没有的值(oracle怎么查询表空间)

更新时间:2024-05-11 13:10:33

oracle怎么在b表查找a表没有的值

可使用关键字not exists来实现。假如a表的id与b表的aid关联,写法如下:

select * from b where not exists (select * from a where b.aid=a.id)

更多栏目