SQL> select nvl2('1','2','3') from dual;NVL2('1','2','3')
-----------------
2if 表达式1 is not null then
显示表达式2
else
显示表达式3
end if
-----------------
2if 表达式1 is not null then
显示表达式2
else
显示表达式3
end if
解决方案 »
- 求sql 大家费心了
- 数据挖掘
- 对用户零时表空间
- Toad 导入数据的问题
- 急等......===== oracle的安装文件哪里有下载?
- tomcat启动报错,ORA-22905: cannot access rows from a non-nested table item?是什么原因?
- 关键时刻数据库挂了,急
- oracle805 & win2000server下导入数据,错误提示sql*loader524急急急急急急急
- 如何配置NET EASY CONFIG
- 康柏的Tru64下,能不能装Oracle9i标准版?
- 用了NVL(var,‘’)就会报错,用NVL(var,‘ ‘)就可以了,为什么?
- 在客户端能不能实现远程启动服务器上的Oracle数据库???
如组合字符串,可以根据情况做处理select nvl2(where1,where1 || ' and ','') || ' where2' from dual;select decode(where1,null,'',where1 || ' and ') || 'where2' from dual;