为什么更新忽略 sql 查询对复制有影响?
why update ignore sql query have an impact on replication?
我无法理解为什么更新忽略 sql 查询会对复制产生影响?有人可以解释一种我可以理解的方式,而不是指出它对于基于语句的复制是不安全的。
这就在 UPDATE 语句的帮助页面上
UPDATE IGNORE statements, including those having an ORDER BY clause, are flagged as unsafe for
statement-based replication. (This is because the order in which the
rows are updated determines which rows are ignored.) With this change,
such statements produce a warning in the log when using
statement-based mode and are logged using the row-based format when
using MIXED mode. (Bug #11758262, Bug #50439) See Section 18.2.1.3,
“Determination of Safe and Unsafe Statements in Binary Logging”, for more information.
我觉得很清楚 -- 你的问题到底是什么?
我无法理解为什么更新忽略 sql 查询会对复制产生影响?有人可以解释一种我可以理解的方式,而不是指出它对于基于语句的复制是不安全的。
这就在 UPDATE 语句的帮助页面上
UPDATE IGNORE statements, including those having an ORDER BY clause, are flagged as unsafe for statement-based replication. (This is because the order in which the rows are updated determines which rows are ignored.) With this change, such statements produce a warning in the log when using statement-based mode and are logged using the row-based format when using MIXED mode. (Bug #11758262, Bug #50439) See Section 18.2.1.3, “Determination of Safe and Unsafe Statements in Binary Logging”, for more information.
我觉得很清楚 -- 你的问题到底是什么?