当前位置:网站首页>Shared lock
Shared lock
2022-07-25 16:05:00 【Leon_ Jinhai_ Sun】
Shared lock (Shared Lock), also called S lock 、 Read the lock . For row lock .
When a transaction adds a read lock to the data , Other transactions can only add read locks to the locked data , You can't lock it ( Exclusive lock ), So other transactions can only read , Can't write .
Mainly to support the scenario of concurrent reading , Write operation is not allowed while reading .
Lock mode :
select * from T where id=1 lock in share mode;
Release mode :
commit、rollback;
边栏推荐
- High score technical document sharing of ink Sky Wheel - Database Security (48 in total)
- MATLAB optimization tool manopt installation
- How to build an enterprise level OLAP data engine for massive data and high real-time requirements?
- [Shakespeare: keep the fun of being a man]
- 通用测试用例写作规范
- Data system partition design - partition rebalancing
- Wavelet transform --dwt2 and wavedec2
- Why is preparestatement better and safer?
- Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
- 兆骑科创高质量海归人才双创服务平台,线上直播路演
猜你喜欢

Leetcode - 379 telephone directory management system (Design)

Leetcode - 362 knock counter (Design)

推荐收藏,这或许是最全的类别型特征的编码方法总结

Introduction to redis

【IJCAI 2022】参数高效的大模型稀疏训练方法,大幅减少稀疏训练所需资源

JWT diagram

Wavelet transform --dwt2 and wavedec2
![[Shakespeare: keep the fun of being a man]](/img/71/6476f2d58255c78ac8f58fbfc6a0c9.png)
[Shakespeare: keep the fun of being a man]
![Leetcode:154. find the minimum value II in the rotation sort array [about the middle and rear positioning dichotomy of the rotation sort array]](/img/03/54a2d82a17cd07374dc0aedacd7b11.png)
Leetcode:154. find the minimum value II in the rotation sort array [about the middle and rear positioning dichotomy of the rotation sort array]

华为2023届提前批预热开始!左 神的程序代码面试指南终派上用场
随机推荐
【IJCAI 2022】参数高效的大模型稀疏训练方法,大幅减少稀疏训练所需资源
Redis distributed lock, it's really impossible without it
不愧是阿里内部“千亿级并发系统架构设计笔记”面面俱到,太全了
MySQL教程67-使用DISTINCT过滤重复数据
leetcode:6127. 优质数对的数目【位运算找规律 + 两数之和大于等于k + 二分】
共2600页!又一份神级的面试手册面世~
How matlab saves all the data after running
Introduction to redis
Product upgrade observation station in June
2022-07-25日报:微软提出CodeT:代码生成新SOTA,20个点的性能提升
BSC智能链合约模式系统开发详情
Distributed | practice: smoothly migrate business from MYCAT to dble
Matlab simulation of BPSK modulation system (1)
Why is preparestatement better and safer?
Data system partition design - Request Routing
华为2023届提前批预热开始!左 神的程序代码面试指南终派上用场
Sword finger offer | number of 1 in binary
MySQL explicit lock
Where is there a demo to set up the flex CDC to draw the number of MySQL?
Reasons for data format conversion when matlab reads the displayed image