update tabella set campo = if(campo=0,1,0) where ...