令和元年/ 2019-12-15 23:14
MYSQL, Case, When, 2018.08.13

CASE
    WHEN gender = '男' THEN 1
    WHEN gender = '女' THEN 2
    ELSE 99
END