当前位置:网站首页>Manually set transaction commit in mysql
Manually set transaction commit in mysql
2022-07-30 23:14:00 【Health and alive】
A description
Under normal circumstances, mysql defaults to autocommit = 1, which automatically commits transactions.Autommit is session-level, that is, the current connection changes autocommit, which has no effect on other connections.When autocommit = 0 is set, it needs to be committed manually.
1. Manually commit transactions in session settings

Query in another session


2. Use the commit command, after submitting

View in another session: already seen, the modification and submission are successful, you can see here

边栏推荐
- # Dasctf 7月赋能赛 WP
- IJCAI2022教程 | 口语语言理解:最新进展和新领域
- 2022.7.27
- 2022 China Logistics Industry Conference and Entrepreneur Summit Forum will be held in Hangzhou!
- 基于 Docker Compose 的 Nacos(MySQL 持久化)的搭建
- language code table
- HashSet源码解析
- ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program
- JS中? ?和??=和?.和 ||的区别
- "Code execution cannot continue because MSVCP140.dll was not found, reinstalling the program may resolve the problem, etc." Solutions
猜你喜欢
随机推荐
打动中产精英群体,全新红旗H5用产品力跑赢需求
The problem of sticky packets in tcp protocol transmission
PyTorch model export to ONNX file example (LeNet-5)
mysql跨库关联查询(dblink)
PS Basic Learning (1)
MySQL连接时出现2003错误
EasyExcel comprehensive course combat
A detailed explanation: SRv6 Policy model, calculation and drainage
实验8(vlan实验)
grub 学习
【LeetCode】64. 最小路径和 - Go 语言题解
实验7(MPLS实验)
JS中? ?和??=和?.和 ||的区别
力扣题(3)—— 无重复字符的最长子串
HCIP第十六天笔记
$\text{ARC 145}$
【MySQL】MySQL中对数据库及表的相关操作
【CTF】buuctf web 详解(持续更新)
ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program
2022牛客暑期多校训练营1 J Serval and Essay









