MySQL 編15 - 特殊関数、多重判定、ヌル判定、ヌル比較、case、nullif ■多重判定 ・Oracle と同じように case が使えるので非常に強力である。 select key1, case when key1 = 'a001' then 'aaa' when key1 = 'b002' then 'bbb' when key1 = 'c003' then 'ccc' else 'xxx' end c1 from testm ; +------+------+ | key1 | c1 | +------+------+ | a001 | aaa | | a011 | xxx | | b002 | bbb | | c003 | ccc | +------+------+ select key1, case key1 when 'a001' then 'aaa' when 'b