Oracle 性能 IN 或 OR [英] Oracle Performance IN or OR

查看:41
本文介绍了Oracle 性能 IN 或 OR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

oracle 中哪个操作符能提供更好的性能 IN 或 OR

Which operator in oracle gives better performance IN or OR

例如:

select * from table where y in (1,2,3)

select * from table where y = 1 or y = 2 or y = 3

推荐答案

你想要做一个明确的解释计划,但我希望性能是相同的.

You'd want to do an explain plan to be sure, but I would expect the performance to be identical.

这篇关于Oracle 性能 IN 或 OR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆