oracle decode()

oracle

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

等价于

  case 

    when  state='false' then '异常'

    when state=‘true’ then  '正常'

    end status

 当 status 为 false 时,获得 异常

 当 status 为 true 时 ,获得 正常

posted @ 2018-11-21 15:18  羲月  阅读(301)  评论(0编辑  收藏  举报