当前位置:网站首页>For MySQL= No data equal to null can be found. Solution
For MySQL= No data equal to null can be found. Solution
2022-07-04 21:26:00 【monody666】
for example , A field has null、“0”、“1” Three , Because the default value is null, Sometimes you need to query null perhaps 0 The data of . If you use it directly xxx != “1”, Only query “0” Of . All need to be written in other ways .
1.xxx IS NULL OR xxx != "1"
2.NOT(xxx <=> "1")
because = Can't compare null,<=> Sure .(<> amount to !=, Can't afford to <=> This kind of inclusion null Comparative effect )
边栏推荐
猜你喜欢
torch. Tensor and torch The difference between tensor
ApplicationContext 与 BeanFactory 区别(MS)
奋斗正当时,城链科技战略峰会广州站圆满召开
Hwinfo hardware detection tool v7.26 green version
OMS系统实战的三两事
数十亿公民信息遭泄漏!公有云上的数据安全还有“救”吗?
MP3是如何诞生的?
Huawei ENSP simulator layer 3 switch
Redis:Redis配置文件相关配置、Redis的持久化
每日一题-LeetCode1200-最小绝对差-数组-排序
随机推荐
Redis transaction
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
Redis cache
Numpy vstack and column_ stack
PS vertical English and digital text how to change direction (vertical display)
Difference between ApplicationContext and beanfactory (MS)
nmap扫描
Jerry's ad series MIDI function description [chapter]
奋斗正当时,城链科技战略峰会广州站圆满召开
Word文档中标题前面的黑点如何去掉
Maya lamp modeling
华为ensp模拟器实现通信安全(交换机)
B站视频 声音很小——解决办法
redis管道
Explication détaillée du mécanisme de distribution des événements d'entrée multimodes
数十亿公民信息遭泄漏!公有云上的数据安全还有“救”吗?
Redis pipeline
Jerry's ad series MIDI function description [chapter]
CAD中能显示打印不显示
Introduction to pressure measurement of JMeter