SQL查询存在A表但不存在B表的数据

方法1:web select * from a where id not in(select id from b) 方法2:sql select a.* from a left join b on a.id=b.id where isnull(b.age) 方法3: svg 其中B表的b_id字段引用了A表的id字段。如今有个查询需求: 性能 给出已知的A表中的id,好比:id in (1,2,3
相关文章
相关标签/搜索