Suppose I do (note: the syntax below is probably not correct, but don\'t worry about it...it\'s just there to make a point)
Start Transaction
INSERT INTO tab
The transaction will make it seem like that the statements in the transaction run without any interference from other transactions. Most DBMSs (including MySQL) maintain ACID properties for transactions. In your case, you are interested in the A for Atomic, which means that the DBMS will make it seem like all the statements in your transactions run atomically without interruption.