使用oracle时,不免会用到判断后转换为要展示的值,这里常用case,如下:
SELECT (case when (1 > 2) then ‘yes‘ when (2 = 2) then ‘no‘ else ‘other‘ end) --no from dual;
使用oracle时,不免会用到判断后转换为要展示的值,这里常用case,如下:
SELECT (case when (1 > 2) then ‘yes‘ when (2 = 2) then ‘no‘ else ‘other‘ end) --no from dual;