Oracle 判断为空 all space

Posted kakaisgood

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle 判断为空 all space相关的知识,希望对你有一定的参考价值。

You can use trim on the column.

where trim(product_type) is null

The above is not DBMS-independent, since Sybase does not provide the trim function. However, the below approach will work both in Sybase and Oracle:

where rtrim(ltrim(product_type)) is null

以上是关于Oracle 判断为空 all space的主要内容,如果未能解决你的问题,请参考以下文章