我在学习oracle时,有个查询需要选择item_batch为空的记录。
采用下列语句始终不行,好像把符合条件的都排出结果了
(rtrim(ltrim(item_batch))='' or item_batch=null);
用这个语句length(item_batch)=0 也存在同样的问题。
select length(item_batch) from dual where no='111';(对应的item_batch为空)知其长度为1,(应该为0才对啊)
还请各位高手指点阿