当前位置:网站首页>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 )
边栏推荐
- 多模輸入事件分發機制詳解
- PS vertical English and digital text how to change direction (vertical display)
- Kubeadm初始化报错:[ERROR CRI]: container runtime is not running
- 杰理之增加进关机前把触摸模块关闭流程【篇】
- 华为ensp模拟器 实现多个路由器的设备可以相互访问
- MP3是如何诞生的?
- 杰理之AD 系列 MIDI 功能说明【篇】
- [wechat applet] collaborative work and release
- 杰理之AD 系列 MIDI 功能说明【篇】
- CAD中能显示打印不显示
猜你喜欢
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
Daily question -leetcode1200- minimum absolute difference - array - sort
c语言函数形参自增自减情况分析
【微信小程序】协同工作与发布
Redis:Redis配置文件相关配置、Redis的持久化
解析互联网时代的创客教育技术
Routing configuration and connectivity test of Huawei simulator ENSP
maya灯建模
迈动互联中标北京人寿保险
Gobang go to work fishing tools can be LAN / man-machine
随机推荐
杰理之增加进关机前把触摸模块关闭流程【篇】
网件r7000梅林系统虚拟内存创建失败,提示USB磁盘读写速度不满足要求解决办法,有需要创建虚拟内存吗??
LambdaQueryWrapper用法
每日一题-LeetCode556-下一个更大元素III-字符串-双指针-next_permutation
At the right time, the Guangzhou station of the city chain science and Technology Strategy Summit was successfully held
IIC (STM32)
Jmeter 之压测入门
杰理之AD 系列 MIDI 功能说明【篇】
Daily question -leetcode1200- minimum absolute difference - array - sort
Jerry added the process of turning off the touch module before turning it off [chapter]
插入排序,选择排序,冒泡排序
B站视频 声音很小——解决办法
Introduction to pressure measurement of JMeter
【C語言】符號的深度理解
D3.js+Three.js数据可视化3d地球js特效
[buuctf.reverse] 151_[FlareOn6]DnsChess
学习突围3 - 关于精力
[micro service SCG] use of predict
股票开户佣金最低多少,炒股开户佣金最低网上开户安全吗
Numpy vstack and column_ stack