I got this table in my MySQL database, \'users\'. It has the fields \'id\' and \'value\'.
Now, I want to update lots of rows in this table with a single
I would just do this with a few different UPDATE statements.
UPDATE users
SET value = 53
WHERE id = 1;
UPDATE users
SET value = 65
WHERE id = 2;
...
This seems simplest if you only have 5 or 6 values to set on multiple rows each. Or is there some specific reason that you need to do this in one query?