MySQL查询 存在一个表而不在另一个表中的数据

A、B两表,找出id字段中,存在A表,但是不存在B表的数据。 示例:a表                                    b表                              方法1: 使用 not in ,容易理解,效率低  ~执行时间为:1.395秒~ 方法2 :    使用 left join...on... , "B.ID isnull(is null)"
相关文章
相关标签/搜索