当前位置:网站首页>Mysql的事务
Mysql的事务
2022-07-06 09:25:00 【手可摘鑫晨】
1,概念
(3)隔离性:⼀个事务的执⾏不能其它事务⼲扰。⼀个事务内部的操作及使⽤的数据对其它并发事务是隔离的,并发执⾏的各个事务之间不能互相⼲扰。
(4)持久性:也称永久性,指⼀个事务⼀旦提交,它对数据库中的数据的改变就应该是永久性的。接下来的其它操作或故障不应该对其执⾏结果有任何影响。
3,隔离级别
(1)读取未提交内容(Read Uncommitted)
所有事务都可以看到其他未提交事务的执行结果。可以读取未提交数据。(脏读)
(2)读取提交内容(Read Committed)
在事务提交或者回滚之后,才可以被读取到数据。(不可重复读)
(3)可重复读(Repeatable Read)
数据库被添加数据的事务的时候,可以读取到数据。(可重复读)
(4)可串行化(Serializable)
事务执行时,会在所有级别上加锁,仿佛事务是以串行的方式进行的,而不是一起发生的。相互之间不会发生冲突。
边栏推荐
- ucore lab2 物理内存管理 实验报告
- [pointer] solve the last person left
- Global and Chinese markets for complex programmable logic devices 2022-2028: Research Report on technology, participants, trends, market size and share
- If the position is absolute, touchablehighlight cannot be clicked - touchablehighlight not clickable if position absolute
- Function: calculates the number of uppercase letters in a string
- Global and Chinese market of goat milk powder 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
- 如何成为一个好的软件测试员?绝大多数人都不知道的秘密
- Global and Chinese markets of Iam security services 2022-2028: Research Report on technology, participants, trends, market size and share
- ucore lab1 系统软件启动过程 实验报告
猜你喜欢

What is the transaction of MySQL? What is dirty reading and what is unreal reading? Not repeatable?

C language do while loop classic Level 2 questions

软件测试Bug报告怎么写?

Login the system in the background, connect the database with JDBC, and do small case exercises

Query method of database multi table link

数字电路基础(四) 数据分配器、数据选择器和数值比较器

Wang Shuang's detailed learning notes of assembly language II: registers

Summary of thread implementation
自动化测试中敏捷测试怎么做?

Build your own application based on Google's open source tensorflow object detection API video object recognition system (II)
随机推荐
Build your own application based on Google's open source tensorflow object detection API video object recognition system (II)
Common Oracle commands
ucore lab2 物理内存管理 实验报告
基于485总线的评分系统双机实验报告
The common methods of servlet context, session and request objects and the scope of storing data in servlet.
Sorting odd and even subscripts respectively for leetcode simple problem
Global and Chinese markets of electronic grade hexafluorobutadiene (C4F6) 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of maleic acid modified rosin esters 2022-2028: Research Report on technology, participants, trends, market size and share
The four connection methods of JDBC are directly coded
Keil5-MDK的格式化代码工具及添加快捷方式
Function: find the root of the equation by Newton iterative method
Fundamentals of digital circuit (V) arithmetic operation circuit
Réponses aux devoirs du csapp 7 8 9
UCORE lab1 system software startup process experimental report
Database monitoring SQL execution
Which version of MySQL does php7 work best with?
刷视频的功夫,不如看看这些面试题你掌握了没有,慢慢积累月入过万不是梦。
几款开源自动化测试框架优缺点对比你知道吗?
Stc-b learning board buzzer plays music 2.0
Sleep quality today 81 points