当前位置:网站首页>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

边栏推荐
- [0x800706D9] solution appears in Microsoft Store
- ML之shap:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用RF随机森林+计算SHAP值单样本力图/依赖关系贡献图可视化实现可解释性之攻略
- 【CTF】buuctf web 详解(持续更新)
- ZZULIOJ:1119: sequence order
- 一文详解:SRv6 Policy模型、算路及引流
- Alibaba Cloud video on demand + project combat
- DFS题单以及模板汇总
- PS Basic Learning (1)
- Go1.18升级功能 - 泛型 从零开始Go语言
- DFS question list and template summary
猜你喜欢

go版本升级

2sk2225 Substitute 3A/1500V Chinese Documentation【PDF Data Book】

Go1.18升级功能 - 模糊测试Fuzz 从零开始Go语言

【LeetCode】64. 最小路径和 - Go 语言题解

软件测试三阶段,你在哪一步?

一文详解:SRv6 Policy模型、算路及引流

反转链表-头插反转法

VS2017 compile Tars test project

ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program

2022 China Logistics Industry Conference and Entrepreneur Summit Forum will be held in Hangzhou!
随机推荐
2022牛客暑期多校训练营1 J Serval and Essay
微软商店出现【0x800706D9】解决方法
Debezium error series 20: task failed to create new topic. Ensure that the task is authorized to create topics
Introducing the visualization tool Netron
“蔚来杯“2022牛客暑期多校训练营2 H.Take the Elevator
Py's pdpbox: a detailed introduction to pdpbox, installation, and case application
DFS题单以及模板汇总
【云驻共创】HCSD大咖直播–就业指南
反转链表-头插反转法
CPM:A large-scale generative chinese pre-trained lanuage model
第十九周进度(了解物联网基础知识)
反转链表-就地逆置法
MySQL进阶sql性能分析
A detailed explanation: SRv6 Policy model, calculation and drainage
PhpMetrics 使用
2022中国物流产业大会暨企业家高峰论坛在杭州举办!
[MySQL] Mysql transaction and authority management
PyTorch model export to ONNX file example (LeNet-5)
MySQL联合查询(多表查询)
Golang 切片删除指定元素的几种方法