✔️ MySQL solution
Solution using cases in MySQL:\n\n\nUPDATE salary SET sex =\nCASE sex\n    WHEN \'m\' THEN \'f\'\n    ELSE \'m\'\nEND;\n\n\n\n
Solution using cases in MySQL:\n\n```\nUPDATE salary SET sex =\nCASE sex\n    WHEN \'m\' THEN \'f\'\n    ELSE \'m\'\nEND;\n```\n\n![kitty.jpeg](https://assets.leetcode.com/users/images/541b8e36-5eb3-4283-b953-6067480389c3_1675058399.1742556.jpeg)\n
['MySQL']