Let's assume we have this table:
--------------------------
| x | y | z | data |
---------------------------
| 3 | 53 | 24 | hello |
---------------------------
-
Now I only want to update "data" in case there is the exact combination of X, Y, Z.
INSERT INTO TABLE SET x=?,y=?,z=?,data=? ON DUPLICATE KEY UPDATE data=?
This obviously doesn't work. How would I do this?