标签: mysql transactions thread-safety
如果我使用innoDB,这个更新线程是否安全。
UPDATE Books, Orders SET Orders.Quantity=Orders.Quantity+2, Books.InStock=Books.InStock-2 WHERE Books.BookID=Orders.BookID AND Orders.OrderID = 1002;