zoukankan      html  css  js  c++  java
  • 【Oracle 12c】CUUG OCP认证071考试原题解析(32)

    32.choose the best answer

    View the Exhibit and examine the data in EMP and DEPT tables.

    In the DEPT table, DEPTNO is the PRIMARY KEY.

    In the EMP table, EMPNO is the PRIMARY KEY and DEPTNO is the FOREIGN KEY referencing

    the DEPTNO column in the DEPT table.

    What would be the outcome of the following statements executed in the given sequence?

    DROP TABLE emp;

    FLASHBACK TABLE emp TO BEFORE DROP;

    INSERT INTO emp VALUES (2,'SCOTT', 10);

    INSERT INTO emp VALUES (3,'KING', 55);

    A) Both the INSERT statements would succeed because none of the constraints on the table are automatically retrieved when the table is flashed back.

    B) Only the second INSERT statement would succeed because all the constraints except referential integrity constraints that reference other tables are retrieved automatically after the table is flashed back.

    C) Both the INSERT statements would fail because all constraints are automatically retrieved when the table is flashed back.

    D) Only the first INSERT statement would succeed because all the constraints except the primary key constraint are automatically retrieved after a table is flashed back.

    Answer:B

    (解析:除了引用其他表的引用完整性约束之外,所有约束在表被闪回之后自动恢复,已经做过实验)

  • 相关阅读:
    Codevs 1283 等差子序列
    Codevs 1282 约瑟夫问题
    Codevs 1228 苹果树
    Codevs 1191 数轴染色
    洛谷P1080 国王游戏
    Codevs 1523 地精部落
    2014-7-17 NOIP模拟赛
    Codevs 3409 搬运礼物
    Codevs 1425 最长公共子串
    TyvjP1863 [Poetize I]黑魔法师之门(2014-8-27)
  • 原文地址:https://www.cnblogs.com/cnblogs5359/p/10417825.html
Copyright © 2011-2022 走看看