“不存在"和“不存在"之间有什么区别?

编程入门 行业动态 更新时间:2024-10-26 06:34:37
本文介绍了“不存在"和“不存在"之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Oracle查询中的not in和not exists有什么区别?

What's the difference between not in and not exists in an Oracle query?

我什么时候使用not in?还有not exist?

When do I use not in? And not exist?

推荐答案

我认为它具有相同的目的.

I think it serves the same purpose.

not in可以也采用文字值,而not exists需要查询以与结果进行比较.

not in can also take literal values whereas not exists need a query to compare the results with.

not exists可能很好用,因为它可以与外部查询&一起使用join.如果条件使用被索引的列,则可能导致索引的使用.

not exists could be good to use because it can join with the outer query & can lead to usage of index, if the criteria uses column that is indexed.

请参见此问题.

让我把上述事情带回去. 参见此链接.我认为,这完全取决于数据库如何翻译此&在数据库/索引等上.

Let me take the above things back. See this link. I think, it all depends on how the DB translates this & on database/indexes etc.

更多推荐

“不存在"和“不存在"之间有什么区别?

本文发布于:2023-10-07 10:33:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469150.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不存在   有什么区别   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!