当前位置:网站首页>mysql 中手动设置事务提交
mysql 中手动设置事务提交
2022-07-30 23:12:00 【健康平安的活着】
一 描述
一般情况下,mysql的默认情况下 autocommit = 1,是自动提交事务的。autommit 是 session 级别的,就是当前连接更改了 autocommit,对其他连接没有影响。当设置 autocommit = 0,就需要手动进行提交了。
1.在会话设置手动提交事务

在另一个会话进行查询

2. 使用commit命令,提交后

在另外一个session中进行查看:已经看到,进行修改提交成功,这边能够看到
边栏推荐
- MySQL进阶sql性能分析
- 2021GDCPC广东省大学生程序设计竞赛 B.Byfibonacci
- 2021GDCPC Guangdong University Student Programming Competition H.History
- BFS题单总结
- Ningbo Zhongning Pawn will transfer 29.5% of the equity for 2.8338 million yuan, and the owner's equity in 2021 will be 9.6875 million yuan
- “蔚来杯“2022牛客暑期多校训练营2 H.Take the Elevator
- IJCAI2022教程 | 口语语言理解:最新进展和新领域
- PS基础学习(一)
- Apache Doris系列之:深入认识实时分析型数据库Apache Doris
- A detailed explanation: SRv6 Policy model, calculation and drainage
猜你喜欢

Lambda表达式

Kotlin特殊类

2sk2225代换3A/1500V中文资料【PDF数据手册】

Learning about XML (1)

通过对抗性知识蒸馏压缩深度图神经网络

Apache Doris系列之:安装与部署详细步骤

Py's pdpbox: a detailed introduction to pdpbox, installation, and case application

# # yyds dry goods inventory interview will brush TOP101: to determine whether there is a part of the list

【2022-05-31】JS逆向之易企秀

Go1.18升级功能 - 泛型 从零开始Go语言
随机推荐
只会纯硬件,让我有点慌
Apache Doris series: In-depth understanding of real-time analytical database Apache Doris
HashSet源码解析
反转链表-头插反转法
2021GDCPC广东省大学生程序设计竞赛 B.Byfibonacci
[MySQL] Mysql transaction and authority management
【CTF】buuctf web 详解(持续更新)
Apache Doris series: detailed steps for installation and deployment
“蔚来杯“2022牛客暑期多校训练营2 H.Take the Elevator
reindex win10
"Code execution cannot continue because MSVCP140.dll was not found, reinstalling the program may resolve the problem, etc." Solutions
递增三元组
2021GDCPC Guangdong University Student Programming Competition H.History
"Wei cup" school more than 2022 cattle summer camp 4 Nancy (polocy) pelosi article variance law of Arts
Go1.18升级功能 - 泛型 从零开始Go语言
ZZULIOJ: 1120: the most value to exchange
PyTorch model export to ONNX file example (LeNet-5)
HF2022-EzPHP复现
CPM:A large-scale generative chinese pre-trained lanuage model
编码与进制