教学文章
Technology Exchange
热门课程
400电话

免费咨询热线
400-090-9964

教学文章

【2019年8月版本】OCP 071认证考试最新版本的考试原题-14

时间:2019-10-17 来源:

【2019年8月版本】OCP 071认证考试最新版本的考试原题-14-CUUG整理

OCP的071考试,在8月份左右全部换了新题,近期考试的题也全部不包括之前的题库了,这次oracle更新071考试题库,虽然全都是新题,但跟之前的相比也有关联,比如把之前的考题稍微变换一下数字、更新一下日期、或者再加一个错误选项等等。

对于2019年8月份的更新,我们CUUG已经进行了收集整理,并给出初步的答案和讲解,仅供参考,希望对考OCP 071认证的同学有帮助。

Choose two.

Examine this SQL statement:

UPDATE orders o

SET customer_name =

(SELECT cust_last_name

FROM customers

WHERE customer_id=o.customer_id);

Which two are true?

A) The subquery is executed before the UPDATE statement is executed.

B) All existing rows in the ORDERS table are updated.

C) The subquery is executed for every updated row in the ORDERS table.

D) The UPDATE statement executes successfully even if the subquery selects multiple rows.

E) The subquery is not a correlated subquery.

Answer:BD

(解析:这道题考的就是关联子查询,类似题目以前有考过。实验证明 orders 的表所有行都会被更新到,但是不满足条件的是不会具体赋值,至少有更新的动作。

关联子查询:

1、 先执行主查询,对于主查询返回的每一行数据,都会造成子查询执行一次

2、 然后子查询返回的结果又传给主查询

3、 主查询根据返回的记录做出判断

)

版权所有@北京神脑资讯技术有限公司(CUUG,中国UNIX用户协会) Copyright ALL Rights Reserved 京ICP备11008061号-1

CUUG旗下网站:www.cuug.com.cn www.cuug.com oracle.cuug.com bbs.cuug.com www.cuug.net

电话:010-59426307 010-59426319 邮政编码:100089

地址:北京市海淀区北清路164号28-38号院