首页 > 数据库 > Oracle > OCP 1Z0-051-55
|
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/ ,如需转载,请注明出处,否则将追究法律责任。