nvl coalesce decode nullif

nvl(a,b) -- 如果a为空 返回b
coalesce(a,b,c,d) --返回第一个不为空的数据
decode(1+2,3,true,false) -- 第一个参数是条件 第二个参数是结果 第三个参数是结果正确的返回值
nullif(a,b) -- a、b相等 返回空 不相等返回a

posted @ 2022-03-30 18:41  大龙挂了,公主在哪  阅读(16)  评论(0编辑  收藏  举报