
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can we find out the current transaction mode in MySQL?
We can run “SELECT @@AUTOCOMMIT” command to check the current transaction mode.
mysql> Select @@AUTOCOMMIT; +--------------------+ | @@AUTOCOMMIT | +--------------------+ | 1 | +--------------------+ 1 row in set (0.05 sec) mysql> SET AUTOCOMMIT = 0; Query OK, 0 rows affected (0.00 sec) mysql> Select @@AUTOCOMMIT; +--------------------+ | @@AUTOCOMMIT | +--------------------+ | 0 | +--------------------+ 1 row in set (0.00 sec)
- Related Articles
- How can we check the current MySQL transaction isolation level?
- How can we force MySQL out of TRADITIONAL mode?
- How can we implement a MySQL transaction?
- How can a user explicitly end current MySQL transaction?
- How can a user implicitly end current MySQL transaction?
- How can we run MySQL statements in batch mode?
- How changes, made in the current transaction, can be permanently recorded\nin MySQL database?
- How changes, made in the current transaction, can be permanently eliminated from MySQL database?
- What will happen to the current MySQL transaction if a START TRANSACTION command is executed in the middle of that current transaction?
- How can we find out the storage engine used for a particular table in MySQL?
- How to Find out the source code of a transaction in SAP?
- What happens to the current MySQL transaction if the session is ended in the middle of a transaction?
- How can a user start new MySQL transaction?
- What will happen to MySQL current transaction, if in the middle of that transaction, the DDL statement is executed?
- How can we insert current date automatically in a column of MySQL table?

Advertisements