当前位置:网站首页>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 )
边栏推荐
猜你喜欢
Billions of citizens' information has been leaked! Is there any "rescue" for data security on the public cloud?
Huawei ENSP simulator realizes communication security (switch)
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
Explication détaillée du mécanisme de distribution des événements d'entrée multimodes
巅峰不止,继续奋斗!城链科技数字峰会于重庆隆重举行
MP3是如何诞生的?
【活动早知道】LiveVideoStack近期活动一览
杰理之AD 系列 MIDI 功能说明【篇】
admas零件名重复
每日一题-LeetCode556-下一个更大元素III-字符串-双指针-next_permutation
随机推荐
numpy vstack 和 column_stack
Configuration of DNS server of Huawei ENSP simulator
[wechat applet] collaborative work and release
Jmeter 之压测入门
Redis pipeline
杰理之AD 系列 MIDI 功能说明【篇】
Use of redis publish subscription
SolidWorks工程图添加材料明细表的操作
Detailed explanation of multi-mode input event distribution mechanism
改善机器视觉系统的方法
EhLib 数据库记录的下拉选择
Maya lamp modeling
LambdaQueryWrapper用法
杰理之AD 系列 MIDI 功能说明【篇】
Test case (TC)
PS竖排英文和数字文字怎么改变方向(变竖直显示)
Day24: file system
Foxit pdf editor v10.1.8 green version
解读创客教育中的各类智能化组织发展
In the release version, the random white screen does not display the content after opening the shutter