当前位置:网站首页>共享锁(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;
边栏推荐
- Pytoch learning notes -- Summary of common functions 3
- 2019 Zhejiang race c-wrong arrangement, greedy
- Hdu3873 shortest path with dependency (topological sorting)
- 记得那两句话
- ZOJ - 4114 flipping game DP, reasonable state representation
- Gary marcus: learning a language is more difficult than you think
- Ice 100g network card fragment message hash problem
- LeetCode - 622 设计循环队列 (设计)
- Data system partition design - partition and secondary index
- 不愧是阿里内部“千亿级并发系统架构设计笔记”面面俱到,太全了
猜你喜欢

Leetcode - 359 log rate limiter (Design)

Equivalent change of resistance circuit (Ⅱ)

Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network

Matlab simulation of BPSK modulation system (1)

LeetCode - 380 O(1) 时间插入、删除和获取随机元素 (设计 哈希表+数组)

基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现

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

Reasons for data format conversion when matlab reads the displayed image

Google Blog: training general agents with multi game decision transformer

# JWT 图解
随机推荐
Understanding of this object
LeetCode - 379 电话目录管理系统(设计)
电阻电路的等效变化(Ⅱ)
Leetcode - 362 knock counter (Design)
Redis distributed lock, it's really impossible without it
【服务器数据恢复】HP EVA服务器存储意外断电导致RAID信息丢失的数据恢复案例
Gary marcus: learning a language is more difficult than you think
LeetCode - 707 设计链表 (设计)
TypeError: Unrecognized value type: <class ‘str‘> ParserError: Unknown string format
General test case writing specification
2019 Zhejiang race c-wrong arrangement, greedy
MySQL tutorial 66 data table query statement
ML - Speech - Introduction to speech processing
LeetCode - 303 区域和检索 - 数组不可变 (设计 前缀和数组)
Zhaoqi Kechuang high-quality overseas returnee talent entrepreneurship and innovation service platform, online live broadcast Roadshow
华为2023届提前批预热开始!左 神的程序代码面试指南终派上用场
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
Leetcode - 707 design linked list (Design)
Storage structure of cross linked list
How Google cloud disk is associated with Google colab