What I want to do is:
UPDATE table SET field = MAX(field) + 1 WHERE id IN (1, 3, 5, 6, 8);
The semantics of this statement, in my mind, wou
In order to get around the mysql-error-1093, use a subquery/derived table/inline view:
mysql-error-1093
UPDATE table SET field = (SELECT x.max_field FROM (SELECT MAX(t.field) + 1 AS max_field FROM TABLE t WHERE t.id IN (1,3,5,6,8) ) x)