47. Given below are the SQL statements executed in a user session:
CREATE TABLE product
INSERT INTO product VALUES(1, 'pen');
INSERT INTO product VALUES (2,'pencil');
UPDATE product SET pcode = 10 WHERE pcode = 1;
DELETE FROM product WHERE pcode = 2;
DELETE FROM product WHERE pcode=10;
ROLLBACK TO SAVEPOINT a;
Which statement describes the consequences?
A. No SQL statement would be rolled back
B. Both the DELETE statements would be rolled back.
C. Only the second DELETE statement would be rolled back.
D. Both the DELETE statements and the UPDATE statement would be rolled back.
试验证明在 ROLLBACK TO SAVEPOINT前不能有COMMIT命令,否则报错: ORA-01086:
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/11312660/viewspace-718815/，如需转载，请注明出处，否则将追究法律责任。