oracle

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

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

等价于

  case 

    when  state='false' then '异常'

    when state=‘true’ then  '正常'

    end status

 当 status 为 false 时,获得 异常

 当 status 为 true 时 ,获得 正常

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄