码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 判断为空 all space

时间:2018-12-03 20:12:40      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:bms   HERE   however   use   判断为空   pre   product   pac   acl   

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

标签:bms   HERE   however   use   判断为空   pre   product   pac   acl   

原文地址:https://www.cnblogs.com/kakaisgood/p/10059883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!