[转][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

猜你喜欢

转载自www.cnblogs.com/z5337/p/9175057.html