当前位置:网站首页>Exclusive lock
Exclusive lock
2022-07-25 16:05:00 【Leon_ Jinhai_ Sun】
Exclusive lock (EXclusive Lock), also called X lock 、 An exclusive lock 、 Write lock . For row lock .
When a transaction locks the data , Other transactions cannot add any locks to the locked data , Again because InnoDB Yes select Statement is unlocked by default , So other transactions can't be written , It is still allowed to read ( Although read locks are not allowed ).
It is mainly used for writing transactions , No other transactions are allowed to modify .
Lock mode :
Automatically :DML Statement default write lock
Manual :select * from T where id=1 for update;
Release mode :
commit、rollback;
边栏推荐
- 【服务器数据恢复】HP EVA服务器存储意外断电导致RAID信息丢失的数据恢复案例
- 意向锁(Intention Lock)
- 不愧是阿里内部“千亿级并发系统架构设计笔记”面面俱到,太全了
- Distributed | practice: smoothly migrate business from MYCAT to dble
- MySQL 悲观锁
- 用GaussDB(for Redis)存画像,推荐业务轻松降本60%
- Leetcode:528. select randomly according to the weight [ordinary random failure + prefix and dichotomy]
- MySQL乐观锁
- 面试8家公司,1周拿了5个offer,分享一下自己的心得
- MySQL tutorial 67- filter duplicate data using distinct
猜你喜欢

Wavelet transform --dwt2 and wavedec2

TypeError: Unrecognized value type: <class ‘str‘> ParserError: Unknown string format

The second revolution of reporting tools

Pytoch learning notes -- Summary of common functions 3

Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%

Leetcode - 380 o (1) time to insert, delete and get random elements (design hash table + array)

一文入门Redis

Leetcode - 641 design cycle double ended queue (Design)*

Pytoch learning notes -- Summary of common functions of pytoch 1

不愧是阿里内部“千亿级并发系统架构设计笔记”面面俱到,太全了
随机推荐
物理防火墙是什么?有什么作用?
MySQL tutorial 66 data table query statement
Where is there a demo to set up the flex CDC to draw the number of MySQL?
Waterfall flow layout
MySQL显式锁
MySQL tutorial 68-as setting alias
【服务器数据恢复】HP EVA服务器存储意外断电导致RAID信息丢失的数据恢复案例
Record Locks(记录锁)
Why is preparestatement better and safer?
Product upgrade observation station in June
Leetcode - 677 key value mapping (Design)*
Leetcode - 225 implements stack with queue
MySQL explicit lock
MySQL教程66-数据表查询语句
MySQL tutorial 65 data in MySQL operation table
mysql意向锁
BSC smart chain contract mode system development details
leetcode:154. 寻找旋转排序数组中的最小值 II【关于旋转排序数组的中后定位二分法】
R语言使用gt包和gtExtras包漂亮地显示表格数据:gt_bar_plot函数和gt_plt_bar_pct函数可视化百分比条形图、原始数据的百分比条形、缩放后的数据的百分比条形、指定数据对齐宽度
一文入门Redis