OCP-1Z0-051 第79题 TRIM,REPLACE,LOWER函数
来源:互联网 发布:mysql存储优化 编辑:程序博客网 时间:2024/06/14 21:08
一、原题
View the Exhibit and examine the structure of the CUSTOMERS table.
In the CUSTOMERS table, the CUST_LAST_NAME column contains the values 'Anderson' and 'Ausson'.
You issue the following query:
SQL> SELECT LOWER(REPLACE(TRIM('son' FROM cust_last_name),'An','O'))
FROM CUSTOMERS
WHERE LOWER(cust_last_name) LIKE 'a%n';
What would be the outcome?
A. 'Oder' and 'Aus'.
B. an error because the TRIM function specified is not valid.
C. an error because the LOWER function specified is not valid.
D. an error because the REPLACE function specified is not valid.
答案:B
二、题目翻译In the CUSTOMERS table, the CUST_LAST_NAME column contains the values 'Anderson' and 'Ausson'.
You issue the following query:
SQL> SELECT LOWER(REPLACE(TRIM('son' FROM cust_last_name),'An','O'))
FROM CUSTOMERS
WHERE LOWER(cust_last_name) LIKE 'a%n';
What would be the outcome?
A. 'Oder' and 'Aus'.
B. an error because the TRIM function specified is not valid.
C. an error because the LOWER function specified is not valid.
D. an error because the REPLACE function specified is not valid.
答案:B
看下面CUSTOMERS表的结构
表中CUST_LAST_NAME列包含'Anderson' and 'Ausson'值.
执行下面的SQL查询语句
执行结果是什么?
A.'Oder' and 'Aus.
B.报错,因为TRIM函数无效。
C.报错,因为LOWER函数无效。
D.报错,因为REPLACE函数无效。
三、题目解析表中CUST_LAST_NAME列包含'Anderson' and 'Ausson'值.
执行下面的SQL查询语句
执行结果是什么?
A.'Oder' and 'Aus.
B.报错,因为TRIM函数无效。
C.报错,因为LOWER函数无效。
D.报错,因为REPLACE函数无效。
因为TRIM('son' FROM cust_last_name)第一个参数不能是多个字符,只能是一个,这里,有'son'三个字符,
SQL> select TRIM('son' FROM 'Anderson') from dual;
select TRIM('son' FROM 'Anderson') from dual
*
ERROR at line 1:
ORA-30001: trim set should have only one character
SQL> select TRIM('son' FROM 'Anderson') from dual;
select TRIM('son' FROM 'Anderson') from dual
*
ERROR at line 1:
ORA-30001: trim set should have only one character
0 0
- OCP-1Z0-051 第79题 TRIM,REPLACE,LOWER函数
- OCP-1Z0-051 第103题 CASE.. WHEN,TO_CHAR,TRIM的用法
- OCP-1Z0-051 第4题 单行函数
- OCP-1Z0-051 第71题 oracle内置函数
- OCP-1Z0-051 第72题 oracle内置函数
- OCP-1Z0-051 第73题 oracle内置函数
- OCP-1Z0-051 第74题 oracle单行函数
- OCP-1Z0-051 第81题 SYSDATE函数
- OCP-1Z0-051 第87题 日期函数
- OCP-1Z0-051 第90题 转换函数
- OCP-1Z0-051 第91题 TO_DATE转换函数
- OCP-1Z0-051 第93题 NVL函数
- OCP-1Z0-051 第94题 MONTHS_BETWEEN,NVL函数
- OCP-1Z0-051 第99题 AVG函数
- OCP-1Z0-051 第10题
- OCP-1Z0-051 第54题
- OCP-1Z0-051 第60题
- OCP-1Z0-051 第75题 round和rpad函数
- autoNumeric.js数字格式化文本使用心得介绍
- 如何去除ecshop标题和网站底部的Powered by ECShop
- 1Z0-051 QUESTION 1 利用CREATE TABLE AS创建表
- mybatis在xml文件中处理大于号小于号的方法
- leetcode 15 3Sum
- OCP-1Z0-051 第79题 TRIM,REPLACE,LOWER函数
- AMQ7257 AMQ9777
- leetcode 16 3Sum Closest
- AfxBeginThread函数参数传递的问题
- 结构体_2
- linux下安装mq
- 安卓系统10个使用技巧教程
- HDU 3605 Escape 最大流,状压
- codechef May challenge A