当前位置:网站首页>Advanced learning of MySQL -- basics -- basic operation of transactions
Advanced learning of MySQL -- basics -- basic operation of transactions
2022-07-07 00:34:00 【Magic pig 9898】
View transaction submission method
select @@autocommit ;
1: Is to automatically submit
0: Is to submit it manually
Set the transaction submission method to manual submission
select @@autocommit = 0;
Commit transaction
commit ;
Roll back the transaction
rollback;
How to start a transaction if it is not submitted manually
start transacttion
perhaps
begin
here , without commit
It doesn't work .
边栏推荐
- What is AVL tree?
- 2022/2/12 summary
- 工程师如何对待开源 --- 一个老工程师的肺腑之言
- Use Yum or up2date to install the postgresql13.3 database
- 从外企离开,我才知道什么叫尊重跟合规…
- Supersocket 1.6 creates a simple socket server with message length in the header
- 【CVPR 2022】半监督目标检测:Dense Learning based Semi-Supervised Object Detection
- rancher集成ldap,实现统一账号登录
- 基於GO語言實現的X.509證書
- Leecode brush questions record interview questions 32 - I. print binary tree from top to bottom
猜你喜欢
37 pages Digital Village revitalization intelligent agriculture Comprehensive Planning and Construction Scheme
Mujoco finite state machine and trajectory tracking
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
基于SSM框架的文章管理系统
基於GO語言實現的X.509證書
How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms
ZYNQ移植uCOSIII
What is a responsive object? How to create a responsive object?
Amazon MemoryDB for Redis 和 Amazon ElastiCache for Redis 的内存优化
Memory optimization of Amazon memorydb for redis and Amazon elasticache for redis
随机推荐
St table
MySQL learning notes (mind map)
2022/2/11 summary
PostgreSQL highly available repmgr (1 master 2 slave +1witness) + pgpool II realizes master-slave switching + read-write separation
互动滑轨屏演示能为企业展厅带来什么
一图看懂对程序员的误解:西方程序员眼中的中国程序员
Racher integrates LDAP to realize unified account login
Liuyongxin report | microbiome data analysis and science communication (7:30 p.m.)
48页数字政府智慧政务一网通办解决方案
Huawei mate8 battery price_ Huawei mate8 charges very slowly after replacing the battery
Oracle EMCC 13.5 environment in docker every minute
Random类的那些事
Amazon MemoryDB for Redis 和 Amazon ElastiCache for Redis 的内存优化
uniapp实现从本地上传头像并显示,同时将头像转化为base64格式存储在mysql数据库中
Are you ready to automate continuous deployment in ci/cd?
Advanced learning of MySQL -- basics -- multi table query -- inner join
Value Function Approximation
Core knowledge of distributed cache
[daily problem insight] prefix and -- count the number of fertile pyramids in the farm
Why should a complete knapsack be traversed in sequence? Briefly explain