当前位置:网站首页>MySQL--锁的奥秘--数据怎么锁
MySQL--锁的奥秘--数据怎么锁
2022-04-23 06:30:00 【梦江河梦】
先看表结构

有如下数据

实验开始
事务1

事务2

获取当前数据库锁占用信息

可以看出事务1和2表面上操作staffid索引和staffno索引,但实际上锁的是对应的主键索引记录
版权声明
本文为[梦江河梦]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_42002747/article/details/124075362
边栏推荐
猜你喜欢

STO With Billing 跨公司库存转储退货

VBA calls SAP RFC to read & write data

内网渗透系列:内网隧道之pingtunnel

内网渗透系列:内网隧道之icmptunnel(DhavalKapil师傅的)
![[NLP notes] preliminary study on CRF principle](/img/8c/2717aeee2e75bdae97d2bacd362e53.png)
[NLP notes] preliminary study on CRF principle

Teach-Repeat-Replan: A Complete and Robust System for Aggressive Flight in Complex Environments

Unity C single case mode learning review notes

Intranet penetration series: icmptunnel of Intranet tunnel (by master dhavalkapil)

Apache Hudi 如何加速传统的批处理模式?

SQL sorts string numbers
随机推荐
Personality charm of high paid it workers
SAP Query增强开发介绍
《内网安全攻防:渗透测试实战指南》读书笔记(五):域内横向移动分析及防御
How to present your digital portfolio: suggestions from creative recruiters
内网渗透系列:内网隧道之pingtunnel
03Scanner类的使用(控制台输入)
Unity获取真实地理地图应用Terrain笔记
一文了解系列,对web渗透的常见漏洞总结(持续更新)
Towords Open World Object Detection
TimelineWindow
TA notes of Zhuang understand (VII) < Lambert + Phong + shadow + 3evcolor + Ao >
《内网安全攻防:渗透测试实战指南》读书笔记(四):权限提升分析及防御
随笔(不定时更新)
一些关于网络安全的好教程或笔记的链接,记录一下
内网渗透系列:内网隧道之dns2tcp
05 use of array
Houdini > rigid body, rigid body breaking RBD
[NLP notes] preliminary study on CRF principle
Internal network security attack and defense: a practical guide to penetration testing (IV): Authority improvement analysis and defense
内网渗透系列:内网隧道之icmptunnel(jamesbarlow师傅的)