![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
I've found an answer to this problem :)
SET @update_id := 0;
UPDATE some_table SET row = 'value', id = (SELECT @update_id := id)
WHERE some_other_row = 'blah' LIMIT 1;
SELECT @update_id;
EDIT by aefxx
This technique can be further expanded to retrieve the ID of every row affected by an updat...