当前位置:网站首页>Mysql的事务
Mysql的事务
2022-07-06 09:25:00 【手可摘鑫晨】
1,概念
(3)隔离性:⼀个事务的执⾏不能其它事务⼲扰。⼀个事务内部的操作及使⽤的数据对其它并发事务是隔离的,并发执⾏的各个事务之间不能互相⼲扰。
(4)持久性:也称永久性,指⼀个事务⼀旦提交,它对数据库中的数据的改变就应该是永久性的。接下来的其它操作或故障不应该对其执⾏结果有任何影响。
3,隔离级别
(1)读取未提交内容(Read Uncommitted)
所有事务都可以看到其他未提交事务的执行结果。可以读取未提交数据。(脏读)
(2)读取提交内容(Read Committed)
在事务提交或者回滚之后,才可以被读取到数据。(不可重复读)
(3)可重复读(Repeatable Read)
数据库被添加数据的事务的时候,可以读取到数据。(可重复读)
(4)可串行化(Serializable)
事务执行时,会在所有级别上加锁,仿佛事务是以串行的方式进行的,而不是一起发生的。相互之间不会发生冲突。
边栏推荐
- 数字电路基础(三)编码器和译码器
- Function: calculates the number of uppercase letters in a string
- DVWA exercise 05 file upload file upload
- 数字电路基础(一)数制与码制
- What is the transaction of MySQL? What is dirty reading and what is unreal reading? Not repeatable?
- pytest
- Rearrange spaces between words in leetcode simple questions
- Global and Chinese market of RF shielding room 2022-2028: Research Report on technology, participants, trends, market size and share
- With 27K successful entry ByteDance, this "software testing interview notes" has benefited me for life
- 指針:最大值、最小值和平均值
猜你喜欢

How to transform functional testing into automated testing?

What level do 18K test engineers want? Take a look at the interview experience of a 26 year old test engineer

Daily code 300 lines learning notes day 9

1. Payment system

ucore lab7 同步互斥 实验报告
自动化测试你必须要弄懂的问题,精品总结

The maximum number of words in the sentence of leetcode simple question

The common methods of servlet context, session and request objects and the scope of storing data in servlet.

STC-B学习板蜂鸣器播放音乐

Get started with Matplotlib drawing
随机推荐
ucore lab6 调度器 实验报告
Cc36 different subsequences
Pointer -- eliminate all numbers in the string
Pedestrian re identification (Reid) - data set description market-1501
Transplant hummingbird e203 core to Da Vinci pro35t [Jichuang xinlai risc-v Cup] (I)
Software testing interview summary - common interview questions
UCORE lab8 file system experiment report
Express
几款开源自动化测试框架优缺点对比你知道吗?
Wang Shuang's detailed learning notes of assembly language II: registers
Zhejiang University Edition "C language programming experiment and exercise guide (3rd Edition)" topic set
The minimum number of operations to convert strings in leetcode simple problem
Pointers: maximum, minimum, and average
About the garbled code problem of superstar script
C language do while loop classic Level 2 questions
CSAPP家庭作业答案7 8 9章
In Oracle, start with connect by prior recursive query is used to query multi-level subordinate employees.
自动化测试你必须要弄懂的问题,精品总结
Réponses aux devoirs du csapp 7 8 9
UCORE lab7 synchronous mutual exclusion experiment report