OCP-047 flashback table emp to before drop
98. View the Exhibit and examine the data in EMP and DEPT tables. In the DEPT table,DEPTNO is the PRIMARY KEY. ?INSERT INTO emp VALUES (3,ING 55); ?? ?(题目中的insert into ?的语句明显不对,INSERT INTO emp VALUES (2,COTT 10); 3个列的值需要,号分隔 所以题目中的INSERT INTO emp VALUES (2,COTT 10);应该为INSERT INTO emp VALUES (2,‘COTT’,10); ? ? ? ? ? ? ? ? ? ? ? ?INSERT INTO emp VALUES (3,ING 55); ? 应该为:??INSERT INTO emp VALUES (3,'ING',55); 否则,应该是2个语句都因为 values的值不对使得insert 语句失败。) A. Both the INSERT statements would fail because all constraints are automatically retrievedwhen the table is flashed back. B. Both the INSERT statements would succeed because none of the constraints on the table are automatically retrievedwhen the table is flashed back. C. 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. D. 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. Answer: D 本题的考点应该是flashback drop table 后 约束是否能被恢复。外键不会在表flashing back drop table 后恢复,而主键约束被恢复了。 第一个insert语句会提示违法唯一约束而失败,第二个语句则会成功执行。 Notes on Flashing Back Dropped Tables?The following notes apply to flashing back dropped tables:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |