Skip to content

Commit 702c284

Browse files
authored
Create swap-salary.sql
1 parent 346e730 commit 702c284

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MySQL/swap-salary.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Time: O(n)
2+
# Space: O(1)
3+
4+
UPDATE salary SET sex = IF(sex = 'm', 'f', 'm')

0 commit comments

Comments
 (0)