oracleif判断语句 oracleSQL当中的IF函数是什么?
oracleSQL当中的IF函数是什么?选择a,当a=0时选择case,当a=1时选择B,然后从表中结束c或选择a,从表中解码(a,0,B,1,c)比较expr1和expr2的值。如果它们相等,则返回
oracleSQL当中的IF函数是什么?
选择a,当a=0时选择case,当a=1时选择B,然后从表中结束c
或
选择a,从表中解码(a,0,B,1,c)
比较expr1和expr2的值。如果它们相等,则返回null;否则,返回expr1的值,其中expr1不能为null。
1. Null表示Null值或非法值NVL expr1,expr2->expr1为Null,return expr2不为Null,return expr1。请注意,这两种类型应该是一致的。2Nvl2、expr1、expr2、expr3->expr1不为null,return expr2为null,return expr3。如果expr2和expr3的类型不同,expr3将转换为类型3,nullif expr1,expr2的expr2-> equal returns null,equal returns ex。