ITPub博客

首页 > 数据库 > Oracle > OCP 1Z0-051-55

OCP 1Z0-051-55

原创 Oracle 作者:LuiseDalian 时间:2014-05-14 07:09:07 0 删除 编辑
(55)Evaluate the following two queries:

SELECT cust_last_name, cust_city

FROM customers

WHERE cust_credit_limit IN (1000, 2000, 3000);

SELECT cust_last_name, cust_city

FROM customers

WHERE cust_credit_limit = 1000 OR cust_credit_limit = 2000 OR cust_credit_limit = 3000;

Which statement is true regarding the above two queries?

A. Performance would improve in query 2.

B. Performance would degrade in query 2.

C. There would be no change in performance.

D. Performance would improve in query 2 only if there are null values in the CUST_CREDIT_LIMIT column.

答案:(C)

解析:

C,因为这2个语句是等价的

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1160688/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OCP 1Z0-051-52
下一篇: OCP 1Z0-051-56
请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6043379