找出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
相关文章
相关标签/搜索