search
HomeDaily ProgrammingMysql KnowledgeWhat does automatic transaction mean in Mysql data table

This article mainly introduces to you What does automatic transaction mean in mysql data table.

Automatic transactions, as the name suggests, are transactions that do not require manual work. The counterpart to automatic transactions is manual transactions. Regarding the introduction of manual transactions, we have introduced them to you in detail in previous articles. You need to Friends can choose to refer to these articles first.

What does transaction mean in mysql data table

How to open transaction in Mysql data table

[

How to set the rollback point for manual transactions in mysql data tables]

The focus of this section is to explain to you the definition of automatic transactions in

mysql data tables.

First of all, manual transactions, simply put, store the SQL statements we execute in the transaction log, and then manually open transactions, commit transactions, roll back transactions, etc. to process our transaction logs. for processing.

Then

automatic transaction means that we can directly submit our sql statement to the database without the need to open a transaction, commit a transaction, rollback, etc.

In our daily operations on the data table, we can find that a single select statement can query, delete, and insert the data table, and we do not need to submit it manually at all.

This is because our series of data table operations are in automatic transactions.

Under normal circumstances, the basic operations of the data table are basically in the default automatic transaction.

Below we can briefly summarize the definition of

mysql automatic transactions.

By default, the MySQL data table is enabled in auto-commit mode (the variable autocommit is ON).

That is to say, as long as you execute the DML (insert, update, delete) operation statement, MySQL will immediately commit the transaction implicitly (Implicit Commit).

Automatically commit transactions: every time a sql statement is executed, it is synchronized to the database.

This article is an introduction to the basic definition of automatic transactions in

mysql data tables. It should be very simple and easy to understand. I hope that through this introduction, it can be helpful to some novice friends. help! In later articles, we will continue to bring you specific knowledge points about automatic transactions in mysql data tables.

If you want to know more about mysql, you can follow the PHP Chinese website

mysql video tutorial

, everyone is welcome to refer to and learn!

The above is the detailed content of What does automatic transaction mean in Mysql data table. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools