当前位置:网站首页>共享锁(Shared Lock)
共享锁(Shared Lock)
2022-07-25 15:43:00 【Leon_Jinhai_Sun】
共享锁(Shared Lock),又称S锁、读锁。针对行锁。
当有事务对数据加读锁后,其他事务只能对锁定的数据加读锁,不能加写锁(排他锁),所以其他事务只能读,不能写。
主要为了支持并发读的场景,读时不允许写操作。
加锁方式:
select * from T where id=1 lock in share mode;
释放方式:
commit、rollback;
边栏推荐
- Solve the vender-base.66c6fc1c0b393478adf7.js:6 typeerror: cannot read property 'validate' of undefined problem
- Basic usage of MFC thread afxbeginthread, passing multiple parameters
- 谷歌博客:采用多重游戏决策Transformer训练通用智能体
- 报表工具的二次革命
- I want to ask whether the variable configuration function can only be used in SQL mode
- TypeError: Unrecognized value type: <class ‘str‘> ParserError: Unknown string format
- < stack simulation recursion >
- Redis distributed lock, it's really impossible without it
- 推荐系统-协同过滤在Spark中的实现
- 活动回顾|7月6日安远AI x 机器之心系列讲座第2期|麻省理工教授Max Tegmark分享「人类与AI的共生演化 」
猜你喜欢

一文入门Redis

活动回顾|7月6日安远AI x 机器之心系列讲座第2期|麻省理工教授Max Tegmark分享「人类与AI的共生演化 」

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

MATLAB optimization tool manopt installation

MySQL - user and permission control

LeetCode - 677 键值映射(设计)*

Pytoch learning notes -- seresnet50 construction

ML - Speech - traditional speech model

「数字安全」警惕 NFT的七大骗局

Reasons for data format conversion when matlab reads the displayed image
随机推荐
Ice 100g network card fragment message hash problem
Implementation of recommendation system collaborative filtering in spark
泰山OFFICE技术讲座:英寸,厘米,磅,派卡,提,行,字行,像素的换算关系
MySQL - Summary of common SQL statements
Pytoch learning notes - Teacher Liu Er RNN advanced chapter - code comments and results
没错,请求DNS服务器还可以使用UDP协议
R语言偏相关性计算(Partial Correlation)、使用ggm包的pcor函数计算偏相关性(Partial Correlations)
LeetCode - 303 区域和检索 - 数组不可变 (设计 前缀和数组)
Geogle colab notes 1-- run the.Py file on the cloud hard disk of Geogle
电阻电路的等效变化(Ⅱ)
Wavelet transform --dwt2 and wavedec2
Wechat applet
Pytoch framework exercise (based on kaggle Titanic competition)
2600 pages in total! Another divine interview manual is available~
Qtime definition (manual waste utilization is simple and beautiful)
行云管家V6.5.1/2/3系列版本发布:数据库OpenAPI能力持续强化
Solve the vender-base.66c6fc1c0b393478adf7.js:6 typeerror: cannot read property 'validate' of undefined problem
Reasons for data format conversion when matlab reads the displayed image
活动回顾|7月6日安远AI x 机器之心系列讲座第2期|麻省理工教授Max Tegmark分享「人类与AI的共生演化 」
记得那两句话