Statement-Level Read Consistency (312)

Oracle always enforces statement-level read consistency. This guarantees that all the
data returned by a single query comes from a single point in time—the time that the
query began. Therefore, a query never sees dirty data or any of the changes made by
transactions that commit during query execution. As query execution proceeds, only
data committed before the query began is visible to the query. The query does not see
changes committed after statement execution begins.

A consistent result set is provided for every query, guaranteeing data consistency, with
no action on the user’s part. The SQL statements SELECT, INSERT with a subquery,
UPDATE, and DELETE all query data, either explicitly or implicitly, and all return
consistent data. Each of these statements uses a query to determine which data it will
affect (SELECT, INSERT, UPDATE, or DELETE, respectively).

A SELECT statement is an explicit query and can have nested queries or a join
operation. An INSERT statement can use nested queries. UPDATE and DELETE
statements can use WHERE clauses or subqueries to affect only some rows in a table
rather than all rows.

Queries used in INSERT, UPDATE, and DELETE statements are guaranteed a consistent
set of results. However, they do not see the changes made by the DML statement itself.
In other words, the query in these operations sees data as it existed before the
operation began to make changes.

语句级一致性读
1. 语句级一致性读 : 保证单一查询的结果集来自一个时间点--查询开始执行的时间.
2. 这个查询的结果集不包含脏数据及此查询执行时其他事务提交的数据。

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-988773/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-988773/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值