Select 'do' from dualwhere trim(' ') = ''
在哪里
Select 'do' from dualwhere trim(' a ')='a'
返回值do.
解决方法 因为trim(”)返回null而不是”SQLFiddle example
In Oracle 8,there is no such thing as a zero-length string. Any zero-length string,either from a function call or the literal ”,is treated as null.
Source
总结以上是内存溢出为你收集整理的在ORACLE SQL的where子句中使用空字符串修剪全部内容,希望文章能够帮你解决在ORACLE SQL的where子句中使用空字符串修剪所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)