oracle decode()

oracle

  函数中 decode (state,'false','异常','true','正常') status

等价于

  case 

    when  state='false' then '异常'

    when state=‘true’ then  '正常'

    end status

 当 status 为 false 时,获得 异常

 当 status 为 true 时 ,获得 正常

原文地址:https://www.cnblogs.com/xiyuekamisama/p/9995285.html