首页 > 数据库 > Oracle > OCP 1Z0-051-54
|
SELECT cust_last_name, cust_city, cust_credit_limit FROM customers WHERE cust_last_name BETWEEN 'A' AND 'C' AND cust_credit_limit BETWEEN 1000 AND 3000; |
What would be the outcome of the above statement?
A. It executes successfully.
B. It produces an error because the condition on CUST_LAST_NAME is invalid.
C. It executes successfully only if the CUST_CREDIT_LIMIT column does not contain any null values.
D. It produces an error because the AND operator cannot be used to combine multiple BETWEEN clauses.
答案:(A)
解析:
可以执行,但结果可能与希望的不一样
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1160684/ ,如需转载,请注明出处,否则将追究法律责任。