Hello,
I am trying to update a specific row in a MySQL table by identifying another unique column besides the primary auto incremented key.
The query I am trying is:
UPDATE users SET active=1 WHERE this=that
Where I have 'this=that' if I use id (the primary key) as "this" and some integer as "that", it works fine. Anything else I use returns a MySQL error.
What would be the best way to update a record for this specific criteria.