Solution without using case - Faster than 98%
\nUPDATE salary\nSET sex = CHAR(ASCII(\'f\') + ASCII(\'m\') - ASCII(`sex`);\n
```\nUPDATE salary\nSET sex = CHAR(ASCII(\'f\') + ASCII(\'m\') - ASCII(`sex`);\n```
[]