--存在
select *
from A
where exists(select 1 from B where A.a = B.b)
--不存在
select *
from A
where not exists(select 1 from B where A.a = B.b)

 

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-12-27
猜你喜欢
  • 2022-01-16
  • 2021-06-04
  • 2021-08-11
  • 2022-12-23
  • 2021-12-21
  • 2021-06-19
相关资源
相似解决方案