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