Chinaunix首页 | 论坛 | 博客
  • 博客访问: 673803
  • 博文数量: 487
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4936
  • 用 户 组: 普通用户
  • 注册时间: 2018-07-05 13:59
个人简介

ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291

文章分类

全部博文(487)

文章存档

2024年(2)

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-02-21 11:02:36

27.choose two


The SQL statements executed in a user session are as follows:


SQL> CREATE TABLE product


(pcode NUMBER(2),


pname VARCHAR2(10));


SQL> INSERT INTO product VALUES (1, 'pen');


SQL> INSERT INTO product VALUES (2,'pencil');


SQL> SAVEPOINT a;


SQL> UPDATE product SET pcode = 10 WHERE pcode = 1;


SQL> SAVEPOINT b;


SQL> DELETE FROM product WHERE pcode = 2;


SQL> COMMIT;


SQL> DELETE FROM product WHERE pcode=10;


SQL> ROLLBACK TO SAVEPOINT a;


Which two statements describe the consequences of issuing the ROLLBACK TO SAVE POINT a command in the session?


A) Only the second DELETE statement is rolled back.


B) No SQL statements are rolled back.


C) Both the DELETE statements and the UPDATE statement are rolled back.


D) The rollback generates an error.


E) Only the DELETE statements are rolled back.


Answer:BD


(因为 commit 操作,前面所有的保存点都结束)
阅读(538) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~