使用oracle时,不免会用到判断后转换为要展示的值,这里常用case,如下:
SELECT (case when (1 > 2) then ‘yes‘ when (2 = 2) then ‘no‘ else ‘other‘ end) --no from dual;
原文地址:https://www.cnblogs.com/lidelin/p/11771739.html
时间: 2024-11-13 06:59:34
使用oracle时,不免会用到判断后转换为要展示的值,这里常用case,如下:
SELECT (case when (1 > 2) then ‘yes‘ when (2 = 2) then ‘no‘ else ‘other‘ end) --no from dual;
原文地址:https://www.cnblogs.com/lidelin/p/11771739.html