OCP-1Z0-052-V8.02-178题

178. All the database users are presently connected to the database instance and working. The HR user

has opened three database sessions and executed the following command in one of his sessions:

SQL> UPDATE persons SET ccode='U031' WHERE ccode='U029';

123 rows updated.

SQL> DELETE FROM persons WHERE exp='Y';

3 rows deleted.

The SYS user opens a new session after HR executed the above commands. Which sessions can see

the effect of the UPDATE and DELETE commands?

A.all sessions of the HR user only

B.all sessions of the HR user and the SYS user

C.the session of the HR user that executed the commands

D.all the sessions for which the database users have access privilege to the PERSONS table

Answer: C

答案解析:

因为在update和delete后没有提交,所以只有执行了这两条语句的session才能看见这两条语句执行后的结果。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值