找出ID字段中,存在A表,可是不存在B表的數據

A、B兩表,找出ID字段中,存在A表,可是不存在B表的數據。web 方法一   使用 not in ,容易理解,效率低sql select distinct A.ID from A where A.ID not in (select ID from B) 方法二   使用 left join…on… , 「B.ID isnull」 表示左鏈接以後在B.ID 字段爲 null的記錄svg selec
相關文章
相關標籤/搜索