ITPub博客

首页 > 数据库 > Oracle > OCP-052考试题库汇总(1)-CUUG内部解答版

OCP-052考试题库汇总(1)-CUUG内部解答版

Oracle 作者:unix_5359 时间:2019-07-24 13:28:03 0 删除 编辑

  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 上定义了引用完整性约束。


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


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

请登录后发表评论 登录
全部评论
2018年,OCP考试题库经过一场大的变动, 2019年,OCP考试题库变动已经开始了,3月份更新了很多新题,不知道以后还会不会有大的更新。 OCP题库解析3:1015267481,新考题交流群

注册时间:2018-07-05

  • 博文量
    151
  • 访问量
    85979