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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -