Ver originalUPDATE `db1`.`articulos` SET `cantidad` = '2' WHERE `articulos`.`id` = 8050; START TRANSACTION;UPDATE articulos SET cantidad = cantidad-'1' WHERE id='8050' AND cantidad-1>='0';UPDATE articulos SET cantidad = cantidad-'1' WHERE id='8050' AND cantidad-1>='0';UPDATE articulos SET cantidad = cantidad-'1' WHERE id='8050' AND cantidad-1>='0'; ROLLBACK;SELECT cantidad FROM articulos WHERE id='8050';