Oracle inside (6)

Source: Internet
Author: User
Transaction 6.1
A transaction is a logical unit of work. It consists of one or more data control statements (DML) or data definition statements (DDL. Oracle provides two
Common transactions: Read-only transactions and read/write transactions. Read-only transactions stipulate that the queried data and queries in the transaction will not occur in the database
The impact of any other transactions. Read/write transactions ensure that the data returned by the query is consistent with the data starting from the query.
Read-only transactions ensure transaction-level read consistency. Such transactions can only contain query statements, but cannot contain any DML statements. In this case,
Only data committed before the start of the transaction can be queried. Therefore, the query can be executed multiple times and the results returned each time are the same.
Read/write transactions provide statement-level read consistency, and such transactions do not see the modifications made by the transactions committed during the query execution.
1) Start the transaction:
When the first SQL statement starts, the transaction starts. When the effect of the transaction is canceled or committed, the transaction ends. SET transaction
It also starts a transaction. Syntax:
SET transaction Parameter
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.