当前位置:网站首页>Mysql的事务
Mysql的事务
2022-07-06 09:25:00 【手可摘鑫晨】
1,概念
(3)隔离性:⼀个事务的执⾏不能其它事务⼲扰。⼀个事务内部的操作及使⽤的数据对其它并发事务是隔离的,并发执⾏的各个事务之间不能互相⼲扰。
(4)持久性:也称永久性,指⼀个事务⼀旦提交,它对数据库中的数据的改变就应该是永久性的。接下来的其它操作或故障不应该对其执⾏结果有任何影响。
3,隔离级别
(1)读取未提交内容(Read Uncommitted)
所有事务都可以看到其他未提交事务的执行结果。可以读取未提交数据。(脏读)
(2)读取提交内容(Read Committed)
在事务提交或者回滚之后,才可以被读取到数据。(不可重复读)
(3)可重复读(Repeatable Read)
数据库被添加数据的事务的时候,可以读取到数据。(可重复读)
(4)可串行化(Serializable)
事务执行时,会在所有级别上加锁,仿佛事务是以串行的方式进行的,而不是一起发生的。相互之间不会发生冲突。
边栏推荐
- Why can swing implement a form program by inheriting the JFrame class?
- UCORE lab7 synchronous mutual exclusion experiment report
- Expanded polystyrene (EPS) global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
- Zhejiang University Edition "C language programming experiment and exercise guide (3rd Edition)" topic set
- Vysor uses WiFi wireless connection for screen projection_ Operate the mobile phone on the computer_ Wireless debugging -- uniapp native development 008
- C language learning summary (I) (under update)
- "If life is just like the first sight" -- risc-v
- HackTheBox-Emdee five for life
- Global and Chinese markets of PIM analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
- Pointers: maximum, minimum, and average
猜你喜欢

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

The maximum number of words in the sentence of leetcode simple question
软件测试需求分析之什么是“试纸测试”

Rearrange spaces between words in leetcode simple questions

Es full text index

Nest and merge new videos, and preset new video titles
软件测试面试要问的性能测试术语你知道吗?

ucore lab7 同步互斥 实验报告

The number of reversing twice in leetcode simple question

Leetcode simple question: check whether two strings are almost equal
随机推荐
软件测试Bug报告怎么写?
Global and Chinese market of RF shielding room 2022-2028: Research Report on technology, participants, trends, market size and share
[oiclass] maximum formula
ByteDance ten years of experience, old bird, took more than half a year to sort out the software test interview questions
Global and Chinese market of DVD recorders 2022-2028: Research Report on technology, participants, trends, market size and share
软件测试需求分析之什么是“试纸测试”
[pointer] delete all spaces in the string s
Oracle foundation and system table
C language do while loop classic Level 2 questions
Statistics 8th Edition Jia Junping Chapter 2 after class exercises and answer summary
Face and eye recognition based on OpenCV's own model
Summary of thread implementation
To brush the video, it's better to see if you have mastered these interview questions. Slowly accumulating a monthly income of more than 10000 is not a dream.
What are the business processes and differences of the three basic business modes of Vos: direct dial, callback and semi direct dial?
Capitalize the title of leetcode simple question
Zhejiang University Edition "C language programming experiment and exercise guide (3rd Edition)" topic set
Why can swing implement a form program by inheriting the JFrame class?
Install and run tensorflow object detection API video object recognition system of Google open source
数字电路基础(二)逻辑代数
Function: find the maximum common divisor and the minimum common multiple of two positive numbers