当前位置:Gxlcms > 数据库问题 > oracle decode函数

oracle decode函数

时间:2021-07-01 10:21:17 帮助过:15人阅读

decode的几种用法
1:使用decode判断字符串是否一样
DECODE(value,if1,then1,if2,then2,if3,then3,...,else)
含义为
IF 条件=值1 THEN
    RETURN(value 1)
ELSIF 条件=值2 THEN
    RETURN(value 2)
    ......
ELSIF 条件=值n THEN
    RETURN(value 3)
ELSE
    RETURN(default)
END IF

---------------------
作者:weeknd
来源:CSDN
原文:https://blog.csdn.net/weeknd/article/details/71157044
版权声明:本文为博主原创文章,转载请附上博文链接!

oracle decode函数

标签:用法   判断   def   含义   article   turn   The   ...   原创文章   

人气教程排行