ITPub博客

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

OCP 1Z0-051-77

原创 Oracle 作者:LuiseDalian 时间:2014-05-16 07:23:58 0 删除 编辑
(77)In the CUSTOMERS table, the CUST_CITY column contains the value 'Paris' for the CUST_FIRST_NAME 'ABIGAIL'.

Evaluate the following query:

SELECT INITCAP(cust_first_name || ‘ ‘ ||

               UPPER(SUBSTR(cust_city, -LENGTH(cust_city),2)))

FROM customers

WHERE cust_first_name = 'ABIGAIL';

What would be the outcome?

A. Abigail PA

B. Abigail Pa

C. Abigail IS

D. an error message

答案:(B)

解析:


position为负数,则从后向前查,然后再向后取指定个数的字符。

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

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

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6042350