I know how to do this, but i think I\'ll overcomplicate it with double selects and so on.
How can you do this (example in pseudo-sql)
UPDATE some_table S
Another option:
UPDATE some_table SET an_int_value = ABS(an_int_value - 1);
UPDATE some_table SET an_int_value = IF(an_int_value=1, 0, 1);
http://dev.mysql.com/doc/refman/5.1/en/control-flow-functions.html#function_if
For ENUM(0,1) fields you can use...
UPDATE table SET int_value=BINARY(int_value=1)