ITPub博客

首页 > 数据库 > Oracle > OCP认证052考试最新题库及答案整理-28

OCP认证052考试最新题库及答案整理-28

原创 Oracle 作者:alice9313 时间:2018-09-04 14:47:26 0 删除 编辑

28、USER1. EMP has a referential Integrity constraint defined on EMP.DNO that references USER1.DEPT.DNO.

  user1 executes these commands:

  SQL> UPDATE dept SET 1oc=’UK’ where dno=1;

  1 row updated

  SQL> UPDATE emp SET sal=1000 whore 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 fall because there Is an uncommitted transaction on USER1. EMP.

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

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

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

Answer:A

北京CUUG整理,转载请注明,OCP讨论群:569933648/836361015


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31550393/viewspace-2213519/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-08-16

  • 博文量
    74
  • 访问量
    43632