当前位置:网站首页>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;
边栏推荐
- 意向锁(Intention Lock)
- 【莎士比亚:保持做人的乐趣】
- Redis distributed lock, it's really impossible without it
- ML - Speech - Introduction to speech processing
- leetcode:6127. 优质数对的数目【位运算找规律 + 两数之和大于等于k + 二分】
- Data system partition design - partition rebalancing
- [wechat applet] detailed explanation of applet host environment
- 推荐收藏,这或许是最全的类别型特征的编码方法总结
- pymongo保存dataframe格式的数据(insert_one, insert_many, 多线程保存)
- Zhaoqi Kechuang high-quality overseas returnee talent entrepreneurship and innovation service platform, online live broadcast Roadshow
猜你喜欢

Implementation of recommendation system collaborative filtering in spark

Activity review | July 6 Anyuan AI X machine heart series lecture No. 2 | MIT professor Max tegmark shares "symbiotic evolution of human and AI"

I interviewed 8 companies and got 5 offers in a week. Share my experience

开发者如何为React Native选择合适的数据库

Product dynamics - Android 13 high-efficiency adaptation new upgrade

JWT diagram
![Leetcode:528. select randomly according to the weight [ordinary random failure + prefix and dichotomy]](/img/fb/8178388f8c9ac80d95140378d24238.png)
Leetcode:528. select randomly according to the weight [ordinary random failure + prefix and dichotomy]

Reasons for data format conversion when matlab reads the displayed image

Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式

Pytoch learning notes -- Summary of common functions 3
随机推荐
ML - Speech - Introduction to speech processing
Pytoch learning notes -- seresnet50 construction
MySQL-自增锁
Golang review summary
递归菜单查询(递归:自己查自己)
用GaussDB(for Redis)存画像,推荐业务轻松降本60%
Is there only one lib under JDBC in Seata?
Endnote add Chinese gbt7714 style how to quote documents in word
Basic usage of MFC thread afxbeginthread, passing multiple parameters
Dpdk packet receiving and sending problem case: non packet receiving problem location triggered by mismatched packet sending and receiving function
产品动态丨Android 13 高效适配全新升级
MySQL页锁
今天睡眠质量记录84分
Ice 100g network card fragment message hash problem
Leetcode - 362 knock counter (Design)
ML - Speech - traditional speech model
Zhaoqi Kechuang high-level innovation and Entrepreneurship Talent Service Platform at home and abroad, mass entrepreneurship and innovation achievement transformation platform
PageHelper.startPage没有生效问题
权限管理-删除菜单(递归)
兆骑科创高质量海归人才双创服务平台,线上直播路演