I know how to increase / decrease a value in a column.
value type INT(11)
Team:
UPDATE table SET value = value - 1 WHERE id = 1
But when the value reaches "0", it continues to decrease.
Question: How to reduce to zero, so I do not get the value (-1) in the column?
Thanks for your code / ideas / suggestions
source
share