mysql update sum of another column code example Example: mysql update sum same table UPDATE products SET quantity = quantity + 10 WHERE id = 8