📅  最后修改于: 2022-03-11 15:05:01.245000             🧑  作者: Mango
-- In a query (DUAL is for Oracle)
SELECT CASE lower(my_col)
WHEN 'agree' THEN 'Ok'
WHEN 'maybe' THEN 'Wait'
ELSE 'Ko'
END AS my_result
FROM DUAL;