效率的比较???
你再试试这个select top 2000 id from (select id from Aexceptselect id from B) as table
select top 20000 A.id from A where not exists (select 1 from b where B.id=A.id)