表里有个为clob的字段,我想查询这个字段为空的记录,用is null查不出来,用is not null却能查出来,但这个字段里确实什么数据都没有,请问大家应该怎么写SQL语句?
经查询资料,可以用以下语句来检测BLOB字段是否为空
select * from sd_cardimage t where t.picture_blob is null or dbms_lob.getlength(t.picture_blob) = 0
表里有个为clob的字段,我想查询这个字段为空的记录,用is null查不出来,用is not null却能查出来,但这个字段里确实什么数据都没有,请问大家应该怎么写SQL语句?
经查询资料,可以用以下语句来检测BLOB字段是否为空
select * from sd_cardimage t where t.picture_blob is null or dbms_lob.getlength(t.picture_blob) = 0