当前位置:网站首页>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 .
边栏推荐
- Wechat applet UploadFile server, wechat applet wx Uploadfile[easy to understand]
- 2022 PMP project management examination agile knowledge points (9)
- Understand the misunderstanding of programmers: Chinese programmers in the eyes of Western programmers
- [automated testing framework] what you need to know about unittest
- Huawei mate8 battery price_ Huawei mate8 charges very slowly after replacing the battery
- Three application characteristics of immersive projection in offline display
- DAY TWO
- rancher集成ldap,实现统一账号登录
- Personal digestion of DDD
- Operation test of function test basis
猜你喜欢
Hero League | King | cross the line of fire BGM AI score competition sharing
509 certificat basé sur Go
Pytest multi process / multi thread execution test case
ldap创建公司组织、人员
DAY SIX
Geo data mining (III) enrichment analysis of go and KEGG using David database
How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms
Idea automatically imports and deletes package settings
2022/2/11 summary
If the college entrance examination goes well, I'm already graying out at the construction site at the moment
随机推荐
Use type aliases in typescript
Leecode brushes questions to record interview questions 17.16 massagist
QT tutorial: creating the first QT program
JWT signature does not match locally computed signature. JWT validity cannot be asserted and should
PostgreSQL uses pgpool II to realize read-write separation + load balancing
Basic information of mujoco
2022年PMP项目管理考试敏捷知识点(9)
Mujoco produces analog video
How to use vector_ How to use vector pointer
DAY FOUR
Why should a complete knapsack be traversed in sequence? Briefly explain
iMeta | 华南农大陈程杰/夏瑞等发布TBtools构造Circos图的简单方法
Imeta | Chen Chengjie / Xia Rui of South China Agricultural University released a simple method of constructing Circos map by tbtools
ldap创建公司组织、人员
DAY SIX
Data analysis course notes (III) array shape and calculation, numpy storage / reading data, indexing, slicing and splicing
37页数字乡村振兴智慧农业整体规划建设方案
2022/2/11 summary
Business process testing based on functional testing
A way of writing SQL, update when matching, or insert