当前位置:网站首页>Oracle is not null cannot filter null values
Oracle is not null cannot filter null values
2022-07-25 00:00:00 【Zhou Wei】
Experts ,
I have a strange problem today , Our simple query statement , Added is not null The filter conditions of , But in the query results , Some of the values of this field , No matter how you look at it, it is empty . By analyzing these outliers utl_raw.cast_to_raw transformation , perhaps dump From the result of function conversion , No matter how you look at them, they are null . See the screenshot for details . Have experts ever encountered such a situation .oracle 11204 edition ,oracle linux System .

Take the answer 1:
select * from tb where field=chr(0);
oracle There is a problem , Reference resources :
https://www.modb.pro/db/33720
Other answers 1:
select * from tb where field=chr(0);
oracle There is a problem , Reference resources :
https://www.modb.pro/db/33720
Other answers 2:
Other answers 3:
The fields are empty and null It's different , You can press this : Field !='' or Field is not null Remove as a condition
Other answers 4:
Guess the value in your field is not NULL, It's Spaces .
For example, the test is as follows :
SQL> create table test_null(id number,c1 varchar2(16));Table created.SQL> insert into test_null values(1,NULL);1 row created.SQL> insert into test_null values(2,'');-- No spaces 1 row created.SQL> insert into test_null values(3,' ');-- Yes 1 A space 1 row created.SQL> commit;Commit complete.SQL> select id,dump(c1,1016) res,length(c1) from test_null; ID RES LENGTH(C1)---------- ------------------------------------------------------------ ---------- 1 NULL 2 NULL 3 Typ=1 Len=1 CharacterSet=AL32UTF8: 20 1SQL> Other answers 5:
Check the length , Check it out ascii code ( It may be invisible characters ):
select length(c_customer_accounts),ascii(c_customer_accounts) from dual;Other answers 6:
dump once , Look at what's inside , contrast ASCII Just look at the code watch and you'll know what it is !
select c_customer_accounts,dump(c_customer_accounts) from your_table ....
Other answers 7:
It may be a carriage return
Other answers 8:
边栏推荐
- Flash send email
- 云图
- C语言学习之分支与循环语句
- Weekly summary (*66): next five years
- What are the meanings and application scenarios of the three giants of cloud computing: IAAs, PAAS and SaaS?
- Notes of Teacher Li Hongyi's 2020 in-depth learning series 6
- Salesforce zero foundation learning (116) workflow - & gt; On flow
- Restructuredtext grammar summary for beginners
- 数组中只出现一次的两个数字
- 痞子衡嵌入式:MCUXpresso IDE下将源码制作成Lib库方法及其与IAR,MDK差异
猜你喜欢

Opengauss kernel analysis: query rewriting

EF core: self referencing organizational structure tree

Simple operation K6

Salesforce zero foundation learning (116) workflow - & gt; On flow

Go basic notes_ 4_ map

2022 the most NB JVM foundation to tuning notes, thoroughly understand Alibaba P6 small case

JS ------ Chapter 5 functions and events

Qt项目-安防监控系统(各个界面功能实现)

What are the meanings and application scenarios of the three giants of cloud computing: IAAs, PAAS and SaaS?

Branch and loop statements in C language learning
随机推荐
Install software on kubernetes cluster using helm 3 package manager
SQL result export function. If you click the work order but don't enter it, the interface is always blank and there is no response. What should you do?
Piziheng embedded: the method of making source code into lib Library under MCU Xpress IDE and its difference with IAR and MDK
In pgplsql: = and=
Paper notes: accurate causal influence on discrete data
Go基础笔记_4_map
Xiezhendong: Exploration and practice of digital transformation and upgrading of public transport industry
EF core :自引用的组织结构树
Technical operation
UART
[brother hero July training] day 20: search Binary Tree
dpkg : Breaks: libapt-pkg5.0 (< 1.7~b) but 1.6.15 is to be installedE: Broken packages
Beisen prospectus: the advantages of the track are prominent, and integration + medium and large customers are plus points
c语言:深度刨析函数栈帧
With screen and nohup running, there is no need to worry about deep learning code anymore | exiting the terminal will not affect the operation of server program code
RS note: industry recommendation system YouTube DNN model (recall layer + sorting layer) [2016 youtube]
Use of serial queues
Coding builds an image, inherits the self built basic image, and reports an error unauthorized: invalid credential Please confirm that you have entered the correct user name and password.
Use es to realize fuzzy search and search recommendation of personal blog
Live broadcast preview | online seminar on open source security governance models and tools