为了自由,幸福而不断奋斗,前行!!!

一笑看风云过....

博客园 首页 新随笔 联系 订阅 管理

Q: 41 Which two statements complete a transaction? (Choose two.)
A. DELETE employees;
B. DESCRIBE employees;
C. ROLLBACK TO SAVEPOINT C;
D. GRANT SELECT ON employees TO SCOTT;
E. ALTER TABLE employees
    SET UNUSED COLUMN sal;
F. SELECT MAX(sal)
    FROM employees
    WHERE department_id = 20;

Answer: D, E

解:

When Does a Transaction Start and End?
A transaction begins when the first DML statement is encountered and ends when one of the
following occurs:
• A COMMIT or ROLLBACK statement is issued
• A DDL statement, such as CREATE, is issued
• A DCL statement is issued
• The user exits iSQL*Plus
• A machine fails or the system crashes
After one transaction ends, the next executable SQL statement automatically starts the next
transaction.
A DDL statement or a DCL statement is automatically committed and therefore implicitly ends a
transaction.

 

SELECT                      Data retrieval

 

INSERT

UPDATE

DELETE

MERGE                       Data manipulation language (DML)

 

CREATE

ALTER

DROP

RENAME

TRUNCAZTE               Data definition language (DDL)

 

COMMIT

ROLLBACK

SAVEPOINT                Transaction control

 

GRANT

REVOKE                     Data control language (DCL)

 

posted on 2011-04-11 20:35  YAO'STAR  阅读(285)  评论(0编辑  收藏  举报