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

边栏推荐
猜你喜欢
随机推荐
Introducing the visualization tool Netron
第十九周进度(了解物联网基础知识)
BFS题单总结
MySQL联合查询(多表查询)
【Untitled】
go版本升级
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 4 DHKLN
Go语学习笔记 - gorm使用 - 表增删改查 Web框架Gin(八)
#yyds干货盘点# 面试必刷TOP101:判断链表中是否有环
[MySQL] Mysql transaction and authority management
Week 19 Progress (Understanding IoT Basics)
"Wei cup" school more than 2022 cattle summer camp 4 Nancy (polocy) pelosi article variance law of Arts
二进制序列
ZZULIOJ:1119: 数列有序
牛逼的公司都在用的绩效管理法OKR
Reverse linked list - in-place inversion method
$\text{ARC 145}$
# # yyds dry goods inventory interview will brush TOP101: to determine whether there is a part of the list
实验8(vlan实验)
mysql跨库关联查询(dblink)








