当前位置:网站首页>Shared lock
Shared lock
2022-07-26 06:51: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;
边栏推荐
- mysql优化之索引及索引失效
- Do you think you are a reliable test / development programmer? "Back to the pot"? Surface and reality
- 【数据库】CTE(Common Table Expression(公共表表达式))
- 7. Reverse integer integer
- CONDA virtual environment envs directory is empty
- 2万字带你从0到1搭建一套企业级微服务安全框架
- 123123123
- dev treelist 常用用法小结
- 【Star项目】小帽飞机大战(四)
- FastDFS-支持双IP、IPV6
猜你喜欢
![[hardware ten treasures] - 7.1 [dynamic RAM] key points of DDR hardware design](/img/ba/87cd3b1600bcb6f2839e7bb093ff62.png)
[hardware ten treasures] - 7.1 [dynamic RAM] key points of DDR hardware design

How does the national standard gb28181 protocol easygbs platform realize device video recording and set streaming IP?

"Niuke | daily question" template stack

Merge_sort

"Final review" 16/32-bit microprocessor (8086) basic register

Deep learning - CV, CNN, RNN

C # use log4net plug-in to output logs to files

深度学习——CV、CNN、RNN

原生高性能抓包工具Proxyman,送给爱学习的你

Introduce you to JVM from architecture
随机推荐
Do you think you are a reliable test / development programmer? "Back to the pot"? Surface and reality
TCP protocol -- message format, connection establishment, reliable transmission, congestion control
UIToolkit工具模板工程
vulnhub Lampião: 1
LeetCode刷题1:题目分类
The "darkest hour" has not come yet. Cherish every bullet 2020-03-22
快速排序(quick-sort)
「“xxxx“正在运行,可能导致系统卡顿,降低待机时间,点按关闭」处理
Command line artifact for operating database: mycli
怎样在win10家庭版中使用Hyper-V
mysql优化之show profile的使用及分析
What to pay attention to when using German chicks for the first time
MySQL isolation level transactions
数据库性能测试(mysql)
Children's programming electronic society graphical programming level examination scratch level 1 real problem analysis (multiple choice) June 2022
『HarmonyOS』DevEco的下载安装与开发环境搭建
Leetcode question brushing 1: topic classification
20000 words will take you from 0 to 1 to build an enterprise level microservice security framework
Which "digital currencies" can survive this winter? 2020-03-30
微信小程序 - 从入门到入土