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

查看:92
本文介绍了Oracle Performance 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 Performance IN或OR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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