当前位置:网站首页>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嘛??
边栏推荐
- Creation and use of unified links in Huawei applinking
- TIPC messaging3
- TIPC协议
- TIPC Cluster5
- 解决uniapp列表快速滑动页面数据空白问题
- Special topic of binary tree -- acwing 47 Path with a certain value in binary tree (preorder traversal)
- mmrotate旋转目标检测框架使用记录
- Basic usage of MySQL in centos8
- [play with FPGA learning 5 in simple terms ----- reset design]
- Order by注入
猜你喜欢
JVM garbage collector
TIPC messaging3
[AI application] Hikvision ivms-4200 software installation
Luogu p5536 [xr-3] core city (greed + tree DP looking for the center of the tree)
Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
Flink two Open, implement Batch Lookup join (attached source)
Importerror: impossible d'importer le nom « graph» de « graphviz»
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
解决uniapp列表快速滑动页面数据空白问题
[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched
随机推荐
ros gazebo相关包的安装
js中给数组添加元素的方法有哪些
Openmldb meetup No.4 meeting minutes
Jenkins安装
Supermarket (heap overload
Uncover the secrets of Huawei application market application statistics
Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)
从攻击面视角,看信创零信任方案实践
[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]
[applinking practical case] share in app pictures through applinking
TIPC Getting Started6
TIPC介绍1
How to use ide to automatically sign and debug Hongmeng application
Verilog and VHDL signed and unsigned number correlation operations
QT learning diary 7 - qmainwindow
SSRF
Jinshanyun - 2023 Summer Internship
Approximate sum count (approximate
V2X-Sim数据集(上海交大&纽约大学)
Solve the problem of data blank in the quick sliding page of the uniapp list