The affairs of 12-sqlite

Source: Internet
Author: User

I. Overview of the transaction

A transaction is a series of operations performed as a single logical unit. Multiple operations are submitted to the system as a whole, either executed or not executed, and the transaction is an inseparable unit of work logic.

II. implementation of the transaction

Begin: Start a transaction

Rollback: Rolling back a transaction

Commit: Commit a transaction

Note: What does "rollback TRANSACTION" mean?

Suppose 1: I now execute the 5 SQL Statements of begin, A, B, C, rollback in turn, and return to the begin position when rollback transactions are encountered, meaning that A, B, c three statements do not work

Suppose 2: I now execute the 5 SQL statements of Begin, A, B, C, and commit in turn, confirming that A, B, and C are executed when a commit transaction is encountered


The affairs of 12-sqlite

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.