mysql inside a transaction does the binlog guarantee the update oder of table -
start transaction; update set b=1 a=1; update b set c=1 a=1; commit;
the binary log record a, b update in order, when b's update flush log before a?
how recurrent?
if using transactional engine such innodb, guaranteed either both updates applied, or neither.
if using engine such myisam transaction may left in state of partial completion, however, binary log done in same order made in initial connection.
there no situation b updated before when made same connection(/transaction). if did these queries in parallel 2 different connections occur in either order.
Comments
Post a Comment