题目 A,B两表,找到ID字段中,存在A表,但不存在B表的数据。 A表有13W数据,去重后3W。B表共2W数据 且有索引 方法一 not in 易于理解 速度慢 select distinct A.id from A where id not in (select id from B) 方法二 is not null 速度适中 select A.id from A left join