北京优技教育科技有限公司

Oracle认证 OCP认证 OCM认证

当前位置: 优技教育 >> ocp考试 >

ocp题库怎么背:11g-051-V9.02-第164题

ocp题库怎么背:11g-051-V9.02-第164题

来源:优技教育    更新时间:2016/8/12 17:19:06    阅读次数:941

ocp题库怎么背:11g-051-V9.02-第164题,完整题库请点击这里联系老师咨询了解

164. View the Exhibit and examine the structure of CUSTOMERS and SALES tables.

Evaluate the following SQL statement:

UPDATE (SELECT prod_id, cust_id, quantity_sold, time_id

FROM sales)

SET time_id = '22-MAR-2007'

WHERE cust_id = (SELECT cust_id

FROM customers

WHERE cust_last_name = 'Roberts' AND

credit_limit = 600);

Which statement is true regarding the execution of the above UPDATE statement?

A. It would not execute because two tables cannot be used in a single UPDATE statement.

B. It would not execute because the SELECT statement cannot be used in place of the table name.

C. It would execute and restrict modifications to only the columns specified in the SELECT statement.

D. It would not execute because a subquery cannot be used in the WHERE clause of an UPDATE statement.

Answer: C

试题解析:

UPDATE后面的SELECT语句相当于一个简单视图,执行并限制只能修改SELECT语句指定的列,前提确保子查询的的结果为一个值。

OCA认证
OCP费用
OCP教程
OCP考试
OCM费用
OCM教程
OCM考试
ORACLE授权认证机构CUUG
CUUG与ORACLE合作15年,是ORACLE金牌合作伙伴,连续多年处于行业领先;
CUUG与工信部人才交流中心合作,是工信人才指定的PostgreSQL数据库培训合作伙伴;
CUUG与阿里云、腾讯云、人大金仓、奥星贝斯等众多数据库厂商合作,开设数据库认证与培训课程;
CUUG与企业合作提供人才输送、定制化培训、技术支持服务;

报名入口 点击进入

北京优技教育科技有限公司

联系电话:010-59426307

课程咨询:010-59426319

联系地址:海淀区紫竹院路88号