Here is a link to the reason behind this question: NOW() for DATETIME InnoDB Transaction guaranteed?
So to ensure a single transaction with any number of queries (
One way could be: