OCP-052考题汇总(2)-CUUG内部解答版

  Examine these commands and their output:

  SQL> SELECT * FROM emp;

  ENO ENAME

  --- -------

  100 Adam

  101 Alan

  SQL> INSERT INTO emp VALUES(102,'Ben');

  1 row created.

  SQL>COMMIT;

  Commit completed.

  SQL>UPDATE emp SET ename='Bryan' WHERE eno=102;

  1 row updated.

  A power failure occurs. The instance is restarted and this query is executed.

  SQL>SELECT ename FROM emp;

  What is the outcome?

  A)Only Adam and Alan are displayed.

  B)No rows are returned.

  C)Only Adam, Alan, and Bryan are displayed.

  D)Adam, Alan, Ben, and Bryan are displayed.

  E)Only Adam, Alan, and Ben are displayed.

  Answer: E

  解析:UPDATE 语句没有提交

原文地址:https://www.cnblogs.com/cnblogs5359/p/11237673.html