[转][Oracle][null]

trim(nvl(ipaddress,'')) != ''

这段SQL 并没有像 MSSQL  IsNull 一样返回不含空白或null 的内容

经尝试发现  trim('') 为 null

select 1 a from dual where '' = trim(' ')
select 1 a from dual where trim(' ') is null

 查看 Oracel 存储过程的语句为:

SELECT text
    FROM user_source
   WHERE NAME = 'procedure_name'
ORDER BY line

查看 Sql Server 存储过程的语句为:

sp_helptext procedure_name

 

posted on 2018-06-12 21:05  z5337  阅读(115)  评论(0编辑  收藏  举报