您的位置首页百科知识

Oracle DECODE函数的用法详解?

Oracle DECODE函数的用法详解?

的有关信息介绍如下:

DECODE(x,search,result,default)

将x与search中的值进行比较,如果相等,decode()就返回result,否则返回default

比较经典的用法:

看图

Oracle DECODE函数的用法详解?