Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1040215
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

分类: Oracle

2015-03-19 23:45:08

3.  You  need  to  extract  details  of  those  products  in   the  SALES  table  where  the  PROD_ID  column
contains the string '_D123'.
Which WHERE clause could   be used in the SELECT statement to get the required output?
A. WHERE prod_id LIKE '%_D123%' ESCAPE '_'
B. WHERE prod_id LIKE '%\_D123%' ESCAPE '\'
C. WHERE prod_id LIKE '%_D123%' ESCAPE '%_'
D. WHERE prod_id LIKE '%\_D123%' ESCAPE '\_'
Answer: B
答案解析:
ESCAPE子句为指定转译字符,因为‘_’下滑线在LIKE子句中指的是任意一个字符,所以需要把_’下滑线进行转译。
阅读(550) | 评论(0) | 转发(0) |
0

上一篇:1Z0-051-2题

下一篇:1Z0-051-4题

给主人留下些什么吧!~~