Consider this table:
Email | Message | Votes
------+---------+-------
Email1| Msg1 | 2
------+---------+-------
Email2| Msg2 | 1
------+---------+-------
Email3| Msg2 | 3
Now, I want to update the 3rd cell under Votes column using following query:
UPDATE tablename SET Votes=4 WHERE Message=Msg2
But the problem is that it will update the both cells under Votes, where Msg2 is present. But I want to update the cell where Email=Email3 and Message=Msg2.
Can it be done using UPDATE query?