【发布时间】:2013-07-25 11:11:07
【问题描述】:
我在 InnoDB 表上有一个 mysql 查询,如下所示:
UPDATE items SET qty = qty + 5 WHERE item_id = 1234 LIMIT 1;
我需要为此使用交易吗?不使用事务会不会发生任何不希望的事情?
【问题讨论】:
-
不,您不需要为此进行交易。 stackoverflow.com/questions/1171749/…
标签: mysql transactions innodb