select * from T_A a (nolock) where a.xh not in (select xh from T_B)

方法1:效果甚微

select * from T_A a (nolock) where not exists (select xh from T_B where xh=a.xh)

方法2:效果比想象的要好。

select * from T_A a (nolock) left join T_B b on b.xh=a.xh where b.xh is null

相关文章:

  • 2021-09-29
  • 2022-02-22
  • 2021-11-03
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2021-10-14
  • 2021-10-01
  • 2021-09-11
  • 2022-12-23
  • 2021-06-22
相关资源
相似解决方案