Not IN问题

Oracle,用left join 替代 exists ,not exists,in , not in,提高效率

Exists,not Exists,in,not in

Oracle,用left join 替代 exists ,not exists,in , not in,提高效率

 

例如:

DELETE FROM YSHA WHERE NOT EXISTS(SELECT 1 FROM YSHB B WHERE YSHA.code=b.code )

等同于

DELETE A FROM YSHA A LEFT JOIN YSHB B ON A.code=b.code WHERE b.code is NULL

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-12-19
  • 2022-12-23
  • 2021-05-21
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-10-01
  • 2021-11-03
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案