select * from a where id not in (select distinct id from b)
返回空集
select * from a left join b on a.id=b.id where b.id is null
返回很多有点迷惑,还没找到原因,大虾给指点下啊