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博客 ” ,链接:http://blog.itpub.net/31550393/viewspace-2213519/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31550393/viewspace-2213519/