题目:
题目链接: https://leetcode-cn.com/problems/swap-salary/
解题思路:
mysql库函数if的应用
代码实现:
# Write your MySQL query statement below
update salary set sex = if(sex = 'f', 'm', 'f');
题目链接: https://leetcode-cn.com/problems/swap-salary/
mysql库函数if的应用
# Write your MySQL query statement below
update salary set sex = if(sex = 'f', 'm', 'f');