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

免费咨询热线
400-090-9964

教学文章

Oracle 11g OCP认证052考试题库(1)-CUUG内部学员版

时间:2019-07-26 来源:

11g版本的OCP考试持续了好几年,一直比较稳定,直到2018年4月份左右,052考试不断的出现新的考题,虽然我们收集整理了不少,但新题还是难避免,这样出现一部分新题,我们收集一部分,持续了不短的时间。

对于这些052考试新题,不仅老师给出了答案,学员也积极的找资料、查文档,形成了一份内部综合版本,通过分数非常高,一起渡过这次052考试的难关。

-----------------------------------------------

052考试题-1

USER1.EMP has a referential integrity constraint defined on EMP.DNO that references USER1.DEPT.DNO.

USER1 executes these commands:

SQL> UPDATE dept SET loc='UK' where dno=1;

1 row updated.

SQL> UPDATE emp SET sal=1000 where eno=100;

1 row updated.

SQL>ALTER TABLE dept DROP(dno)

What will be the outcome and why?

A)It will fail because a referential integrity constraint is defined on USER1.EMP.

B)It will execute successfully and drop DEPT.DNO.

C)It will fail because there is an uncommitted transaction on USER1.DEPT.

D)It will execute successfully and drop the DEPT.DNO and EMP.DNO columns.

E)It will fail because there is an uncommitted transaction on USER1.EMP

Answer: A

赵:

A 译:它将失败,因为 USER1.EMP 上定义了引用完整性约束。

小明:外键约束中,一个被作为外键引用的主键值不能直接删除,更不用说整个列

版权所有@北京神脑资讯技术有限公司(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号院