Published on

Leetcode - 627. Swap Salary

Authors
  • avatar
    Name
    Indo Yoon
    Twitter
Table of Contents

문제

[Loading...

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

LeetCode

](https://leetcode.com/problems/swap-salary/)

정답

UPDATE Salary
SET sex = replace(sex, 'm', 'x'),
    sex = replace(sex, 'f', 'm'),
    sex = replace(sex, 'x', 'f')