当前位置:网站首页>Mysql的事务
Mysql的事务
2022-07-06 09:25:00 【手可摘鑫晨】
1,概念
(3)隔离性:⼀个事务的执⾏不能其它事务⼲扰。⼀个事务内部的操作及使⽤的数据对其它并发事务是隔离的,并发执⾏的各个事务之间不能互相⼲扰。
(4)持久性:也称永久性,指⼀个事务⼀旦提交,它对数据库中的数据的改变就应该是永久性的。接下来的其它操作或故障不应该对其执⾏结果有任何影响。
3,隔离级别
(1)读取未提交内容(Read Uncommitted)
所有事务都可以看到其他未提交事务的执行结果。可以读取未提交数据。(脏读)
(2)读取提交内容(Read Committed)
在事务提交或者回滚之后,才可以被读取到数据。(不可重复读)
(3)可重复读(Repeatable Read)
数据库被添加数据的事务的时候,可以读取到数据。(可重复读)
(4)可串行化(Serializable)
事务执行时,会在所有级别上加锁,仿佛事务是以串行的方式进行的,而不是一起发生的。相互之间不会发生冲突。
边栏推荐
- How to solve the poor sound quality of Vos?
- Capitalize the title of leetcode simple question
- 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 goat milk powder 2022-2028: Research Report on technology, participants, trends, market size and share
- Using flask_ Whooshalchemyplus Jieba realizes global search of flask
- 王爽汇编语言详细学习笔记二:寄存器
- ucore lab6 调度器 实验报告
- With 27K successful entry ByteDance, this "software testing interview notes" has benefited me for life
- Global and Chinese market of RF shielding room 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
Description of Vos storage space, bandwidth occupation and PPS requirements
Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator
数字电路基础(一)数制与码制
The number of reversing twice in leetcode simple question
Quaternion -- basic concepts (Reprint)
Sleep quality today 81 points
Keil5-MDK的格式化代码工具及添加快捷方式
Stc-b learning board buzzer plays music 2.0
Wang Shuang's detailed notes on assembly language learning I: basic knowledge
Leetcode simple question: check whether the numbers in the sentence are increasing
随机推荐
Global and Chinese market of barrier thin film flexible electronics 2022-2028: Research Report on technology, participants, trends, market size and share
Dlib detects blink times based on video stream
软件测试Bug报告怎么写?
基于485总线的评分系统双机实验报告
What level do 18K test engineers want? Take a look at the interview experience of a 26 year old test engineer
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.
Soft exam information system project manager_ Project set project portfolio management --- Senior Information System Project Manager of soft exam 025
数字电路基础(四) 数据分配器、数据选择器和数值比较器
What is an index in MySQL? What kinds of indexes are commonly used? Under what circumstances will the index fail?
How to learn automated testing in 2022? This article tells you
The maximum number of words in the sentence of leetcode simple question
Differences between select, poll and epoll in i/o multiplexing
Fundamentals of digital circuits (III) encoder and decoder
想跳槽?面试软件测试需要掌握的7个技能你知道吗
[pointer] find the length of the string
Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator
Why can swing implement a form program by inheriting the JFrame class?
数字电路基础(一)数制与码制
Global and Chinese market of goat milk powder 2022-2028: Research Report on technology, participants, trends, market size and share
Express