当前位置:网站首页>Mysql的事务
Mysql的事务
2022-07-06 09:25:00 【手可摘鑫晨】
1,概念
(3)隔离性:⼀个事务的执⾏不能其它事务⼲扰。⼀个事务内部的操作及使⽤的数据对其它并发事务是隔离的,并发执⾏的各个事务之间不能互相⼲扰。
(4)持久性:也称永久性,指⼀个事务⼀旦提交,它对数据库中的数据的改变就应该是永久性的。接下来的其它操作或故障不应该对其执⾏结果有任何影响。
3,隔离级别
(1)读取未提交内容(Read Uncommitted)
所有事务都可以看到其他未提交事务的执行结果。可以读取未提交数据。(脏读)
(2)读取提交内容(Read Committed)
在事务提交或者回滚之后,才可以被读取到数据。(不可重复读)
(3)可重复读(Repeatable Read)
数据库被添加数据的事务的时候,可以读取到数据。(可重复读)
(4)可串行化(Serializable)
事务执行时,会在所有级别上加锁,仿佛事务是以串行的方式进行的,而不是一起发生的。相互之间不会发生冲突。
边栏推荐
- The salary of testers is polarized. How to become an automated test with a monthly salary of 20K?
- Global and Chinese markets of cobalt 2022-2028: Research Report on technology, participants, trends, market size and share
- Why can swing implement a form program by inheriting the JFrame class?
- C language do while loop classic Level 2 questions
- Wang Shuang's detailed learning notes of assembly language II: registers
- 软件测试面试要问的性能测试术语你知道吗?
- Stc-b learning board buzzer plays music 2.0
- Keil5 MDK's formatting code tool and adding shortcuts
- Rearrange spaces between words in leetcode simple questions
- Pedestrian re identification (Reid) - data set description market-1501
猜你喜欢

The latest query tracks the express logistics and analyzes the method of delivery timeliness

Fundamentals of digital circuits (I) number system and code system

CSAPP Shell Lab 实验报告

数字电路基础(二)逻辑代数
![[200 opencv routines] 98 Statistical sorting filter](/img/ba/9097df20f6d43dfce9fc1e374e6597.jpg)
[200 opencv routines] 98 Statistical sorting filter

Get started with Matplotlib drawing

Software testing interview summary - common interview questions

The number of reversing twice in leetcode simple question
遇到程序员不修改bug时怎么办?我教你

王爽汇编语言详细学习笔记二:寄存器
随机推荐
Pointer -- eliminate all numbers in the string
Detailed introduction to dynamic programming (with examples)
Stc-b learning board buzzer plays music 2.0
遇到程序员不修改bug时怎么办?我教你
Investment should be calm
Express
The maximum number of words in the sentence of leetcode simple question
Currently, mysql5.6 is used. Which version would you like to upgrade to?
Function: find the root of the equation by Newton iterative method
Install and run tensorflow object detection API video object recognition system of Google open source
Thinking about three cups of tea
My first blog
数字电路基础(一)数制与码制
Transplant hummingbird e203 core to Da Vinci pro35t [Jichuang xinlai risc-v Cup] (I)
Don't you even look at such a detailed and comprehensive written software test question?
ucore lab7 同步互斥 实验报告
Leetcode simple question: check whether two strings are almost equal
150 common interview questions for software testing in large factories. Serious thinking is very valuable for your interview
UCORE lab8 file system experiment report
China's county life record: go upstairs to the Internet, go downstairs' code the Great Wall '