I need to update a field based on the value of another field, updated in the same query.
For example, this is may be my code:
UPDATE my_table SET qty = qty+1, complete = IF(qty = '10', '1', '0') WHERE id = '1'
Value of qty
in the IF condition is the value before or after the update?