当前位置:网站首页>Will the modified data be updated when it is the same as the original data?
Will the modified data be updated when it is the same as the original data?
2022-07-29 09:23:00 【Young】
One 、 background
This article mainly tests MySQL perform update When the sentence is , Against the original data ( Not modified ) same update The statement will be in the MySQL Internal re execution ?
Two 、 Test environment
MySQL5.7.25Centos 7.4
3、 ... and 、binlog_format by ROW
1、 Parameters
2、 testing procedure
session1
session2
session1
3、 summary
stay binlog_format=row and binlog_row_image=FULL when , because MySQL Need to be in binlog It records all the fields , So when you read the data, you read all the data , that Duplicate data update Not execute . namely MySQL Called InnoDB The engine provides “ It is amended as follows (1,55)” This interface , But the engine found the same value , Not updated , Go straight back to .
Four 、binlog_format by STATEMENT
1、 Parameters
2、 testing procedure
session1
session2
session1
3、 summary
stay binlog_format=statement and binlog_row_image=FULL when ,InnoDB It's done inside update sentence , namely “ Change this value to (1,999)“ This operation , What should be locked , The update of this update .
边栏推荐
- How to choose effective keywords
- QMainWindow 详解
- Simple unit testing idea
- 常用的DOS命令[逐渐完善]
- [machine learning] logistic regression code exercise
- Travel notes in 2022 (ongoing)
- 【机器学习】朴素贝叶斯代码练习
- Sublime text create page
- Axurerp prototype design starts quickly
- How does alternates achieve high-performance publish and subscribe?
猜你喜欢
乱打日志的男孩运气怎么样我不知道,加班肯定很多
Quaternion and its simple application in unity
AxureRP原型设计 快速开始
文件重命名后,怎样将新旧文件名及所在位置导出到excel
QMainWindow 详解
Cloud native management practice: business led Devops continuous delivery system
[unity entry program] C # and unity - understand classes and objects
36. JS动画
Qmainwindow details
Safety is no longer the only selling point. Test drive "slash youth" Volvo C40
随机推荐
Could not receive a message from the daemon
C # use database to bind listview control data
Asp graduation project - based on C # +asp Design and implementation of enterprise investment value analysis system based on. Net + sqlserver (graduation thesis + program source code) -- enterprise in
Data representation and calculation (base)
Leetcode: interview question 08.14. Boolean operation
四元数与其在Unity中的简单应用
Can the access database be accessed remotely
On the charm of code language
LeetCode刷题(6)
First order traversal / second order traversal determines the approximate shape of the tree
使用cpolar发布树莓派网页(cpolar功能的完善)
不用Swagger,那我用啥?
Floweable foundation Chapter 1
How to choose effective keywords
View port occupancy
先序遍历/后序遍历确定树的大致形态
Configuration file settings for remote connection to Windows version server redis
ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
MySQL error summary
当 update 修改数据与原数据相同时会被更新吗?