例子:查询物料表(tbl_material)中存在,配件主数据表(tbl_part_base_info)中不存在的配件编号:
select m.part_no from tbl_material m where not exists
(select * from tbl_part_base_info base where m.part_no=base.part_no );本文共 242 字,大约阅读时间需要 1 分钟。
例子:查询物料表(tbl_material)中存在,配件主数据表(tbl_part_base_info)中不存在的配件编号:
select m.part_no from tbl_material m where not exists
(select * from tbl_part_base_info base where m.part_no=base.part_no );转载于:https://www.cnblogs.com/chunyansong/p/5489962.html