当前位置:网站首页>共享锁(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;
边栏推荐
- Endnote cannot edit range resolution
- How matlab produces random complex sequences
- Geogle colab notes 1-- run the.Py file on the cloud hard disk of Geogle
- Why is preparestatement better and safer?
- Reasons for data format conversion when matlab reads the displayed image
- [IJCAI 2022] parameter efficient large model sparse training method, which greatly reduces the resources required for sparse training
- 用GaussDB(for Redis)存画像,推荐业务轻松降本60%
- Qtime definition (manual waste utilization is simple and beautiful)
- Matlab simulation of BPSK modulation system (1)
- Leetcode - 225 implements stack with queue
猜你喜欢

谷歌博客:采用多重游戏决策Transformer训练通用智能体

ML - Speech - traditional speech model

LeetCode - 359 日志速率限制器 (设计)

Leetcode - 303 area and retrieval - array immutable (design prefix and array)

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

JWT diagram

The second revolution of reporting tools

LeetCode - 362 敲击计数器(设计)

Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output

MySQL - Summary of common SQL statements
随机推荐
Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
2019 Zhejiang race c-wrong arrangement, greedy
Reasons for data format conversion when matlab reads the displayed image
LeetCode - 380 O(1) 时间插入、删除和获取随机元素 (设计 哈希表+数组)
July 25th, 2022 Daily: Microsoft proposed CodeT: a new SOTA for code generation, with 20 points of performance improvement
Copy a word style template to another document
华为2023届提前批预热开始!左 神的程序代码面试指南终派上用场
Dpdk packet receiving and sending problem case: non packet receiving problem location triggered by mismatched packet sending and receiving function
Pytoch learning notes -- Summary of common functions of pytoch 1
MySQL教程67-使用DISTINCT过滤重复数据
物理防火墙是什么?有什么作用?
MySQL教程65-MySQL操作表中数据
Leetcode - 641 design cycle double ended queue (Design)*
Beyond Compare 4 实现class文件对比【最新】
Data system partition design - partition and secondary index
MySQL tutorial 71-where conditional query data
Circulaindicator component, which makes the indicator style more diversified
R语言使用gt包和gtExtras包漂亮地显示表格数据:gt_bar_plot函数和gt_plt_bar_pct函数可视化百分比条形图、原始数据的百分比条形、缩放后的数据的百分比条形、指定数据对齐宽度
谷歌博客:采用多重游戏决策Transformer训练通用智能体
Data system partition design - partition rebalancing