oracle之case

使用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