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
相關文章
相關標籤/搜索