当前位置:网站首页>MySQL比较运算符IN问题求解
MySQL比较运算符IN问题求解
2022-07-02 09:34:00 【CSDN问答】
关于比较运算符IN
我看书上、教程视频上、网上,都是这么介绍的:
判断给定值是否是IN列表中的一个值。如果是,返回1,否则返回0。如果给定值为NULL,或者IN列表存在NULL,则结果为NULL。
可是 SELECT 1 IN (1, NULL) 的结果是1,而不是NULL。
这是为什么?不是说 或者IN列表存在NULL,则结果为NULL嘛??

边栏推荐
- PowerBI中导出数据方法汇总
- 【深入浅出玩转FPGA学习3-----基本语法】
- Tick Data and Resampling
- ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
- Approximate sum count (approximate
- C file and folder operation
- ros gazebo相关包的安装
- 高德根据轨迹画线
- spritejs
- Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know
猜你喜欢

【深入浅出玩转FPGA学习3-----基本语法】
![[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]](/img/50/22f2fa8fd606572b13a18cc889ca2e.png)
[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]

Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)

【IDEA】使用插件一键逆向生成代码

TIPC Service and Topology Tracking4

Use Huawei performance management service to configure the sampling rate on demand

TIPC 寻址2

I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)

Flick two open, realized a batch lookup join (with source code)

Win11 arm system configuration Net core environment variable
随机推荐
TIPC introduction 1
【深入浅出玩转FPGA学习5-----复位设计】
LVM operation
Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know
ren域名有价值吗?值不值得投资?ren域名的应用范围有哪些?
C# 文件与文件夹操作
Luogu p4281 [ahoi2008] emergency gathering / gathering (tree doubling LCA)
[applinking practical case] share in app pictures through applinking
Primary key policy problem
TIPC protocol
Xiao Sha's pain (double pointer
Implementation of six singleton modes
Pit of the start attribute of enumrate
Approximate sum count (approximate
PLC-Recorder快速监控多个PLC位的技巧
Summary of data export methods in powerbi
Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
[ark UI] implementation of the startup page of harmonios ETS
Jenkins installation
TIPC messaging3