当前位置:网站首页>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
边栏推荐
- ML's shap: Based on FIFA 2018 Statistics (2018 Russia World Cup) team match star classification prediction data set using RF random forest + calculating SHAP value single-sample force map/dependency c
- leetcode 406. Queue Reconstruction by Height 根据身高重建队列(中等)
- 10 个关于自动化发布管理的好处
- Day016 Classes and Objects
- 数据清洗-使用es的ingest
- "Code execution cannot continue because MSVCP140.dll was not found, reinstalling the program may resolve the problem, etc." Solutions
- proemthues 服务发现配置
- Go1.18升级功能 - 泛型 从零开始Go语言
- “蔚来杯“2022牛客暑期多校训练营2 H.Take the Elevator
- Summary of BFS questions
猜你喜欢
EasyExcel comprehensive course combat
Py's pdpbox: a detailed introduction to pdpbox, installation, and case application
【LeetCode】70. 爬楼梯 - Go 语言题解
第十九周进度(了解物联网基础知识)
mysql中关于存储过程无法实现迁移复制表中数据问题
Py之pdpbox:pdpbox的简介、安装、案例应用之详细攻略
Apache Doris系列之:深入认识实时分析型数据库Apache Doris
【MySQL】DQL相关操作
Abstract classes and interfaces (study notes)
2022中国物流产业大会暨企业家高峰论坛在杭州举办!
随机推荐
go版本升级
反转链表-头插反转法
vscode上利用screen命令跑代码
[MySQL] Related operations on databases and tables in MySQL
Successfully resolved ModuleNotFoundError: No module named 'Image'
reindex win10
Debezium报错系列之二十:task failed to create new topic.Ensure that the task is authorized to create topics
抽象类和接口(学习笔记)
2021GDCPC Guangdong University Student Programming Competition B.Byfibonacci
HF2022-EzPHP reproduction
Day016 Classes and Objects
Kotlin特殊类
一文详解:SRv6 Policy模型、算路及引流
【LeetCode】42. 接雨水 - Go 语言题解
Detailed operator
“蔚来杯“2022牛客暑期多校训练营4 N.Particle Arts 规律 方差
Go的Gin框架学习
The problem of sticky packets in tcp protocol transmission
科技的成就(三十一)
打动中产精英群体,全新红旗H5用产品力跑赢需求