OCP-1Z0-051 第58题 转义字符escape
2014-05-07 08:18
267 查看
一、原题
The PART_CODE column in the SPARES table contains the following list of values:
PART_CODE
A%_WQ123
A%BWQ123
AB_WQ123
Evaluate the following query:
SQL> SELECT part_code
FROM spares
WHERE part_code LIKE '%\%_WQ12%' ESCAPE '\';
Which statement is true regarding the outcome of the above query?
A. It produces an error.
B. It displays all values.
C. It displays only the values A%_WQ123 and AB_WQ123 .
D. It displays only the values A%_WQ123 and A%BWQ123.
E. It displays only the values A%BWQ123 and AB_WQ123.
答案:D
二、题目翻译
SPARES表的PART_CODE列包含下面的值:
下面的这个查询:
关于上面查询的结果哪句话是正确的?
A. 会报错。
B. 显示所有的结果。
C. 仅显示A%_WQ123 and AB_WQ123。
D. 仅显示A%_WQ123 and A%BWQ123。
E. 仅显示A%BWQ123 and AB_WQ123。
三、题目解析
因为LIKE '%\%_WQ12%' ESCAPE '\'里的\为转译字符,把第二个%转义,而_下划线没有转义,代表一个字符,所以答案为D
The PART_CODE column in the SPARES table contains the following list of values:
PART_CODE
A%_WQ123
A%BWQ123
AB_WQ123
Evaluate the following query:
SQL> SELECT part_code
FROM spares
WHERE part_code LIKE '%\%_WQ12%' ESCAPE '\';
Which statement is true regarding the outcome of the above query?
A. It produces an error.
B. It displays all values.
C. It displays only the values A%_WQ123 and AB_WQ123 .
D. It displays only the values A%_WQ123 and A%BWQ123.
E. It displays only the values A%BWQ123 and AB_WQ123.
答案:D
二、题目翻译
SPARES表的PART_CODE列包含下面的值:
下面的这个查询:
关于上面查询的结果哪句话是正确的?
A. 会报错。
B. 显示所有的结果。
C. 仅显示A%_WQ123 and AB_WQ123。
D. 仅显示A%_WQ123 and A%BWQ123。
E. 仅显示A%BWQ123 and AB_WQ123。
三、题目解析
因为LIKE '%\%_WQ12%' ESCAPE '\'里的\为转译字符,把第二个%转义,而_下划线没有转义,代表一个字符,所以答案为D
相关文章推荐
- cmd批处理转义字符%的详细解释
- css 通配符用法总结
- vbs shellcode转换escape加密
- ren 命令在使用通配符时需要注意的地方
- js中escape对应的C#解码函数 UrlDecode
- js escape,unescape解决中文乱码问题的方法
- escape unescape的php下的实现方法
- 解析php中的escape函数
- 在PHP中实现Javascript的escape()函数代码
- js字符编码函数区别分析
- escape、encodeURI、encodeURIComponent等方法的区别比较
- Javascript 八进制转义字符(8进制)
- MySQL 转义字符使用说明
- 转义字符(\)对JavaScript中JSON.parse的影响概述
- 探索PowerShell(十五) 引号与转义字符
- escape、encodeURI 和 encodeURIComponent 的区别
- javascript 字符 Escape,encodeURI,encodeURIComponent
- SQL查询语句通配符与ACCESS模糊查询like的解决方法
- java中的转义字符介绍
- mysqlpp中一些特殊功能总结