OJ-Problems-Source/LeetCode-CN/627.sql

5 lines
89 B
MySQL
Raw Normal View History

2018-06-20 23:13:21 +08:00
update salary set sex = case sex
when 'f' then 'm'
when 'm' then 'f'
end