627. 交换工资 ps: 这题不应该叫交换性别吗。。。 update用法: update 表名称 set 列名称=新值 where 更新条件; update salary set sex = if(sex = 'm','f','m'); 或者 update salary set sex = case when sex = 'm' then 'f' else 'm' end;