当前位置:网站首页>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嘛??

边栏推荐
- The difference between self and static in PHP in methods
- JVM garbage collector
- How does the whole network display IP ownership?
- [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
- [in simple terms, play with FPGA learning 3 ----- basic grammar]
- Importerror: impossible d'importer le nom « graph» de « graphviz»
- QT learning diary 8 - resource file addition
- C#多维数组的属性获取方法及操作注意
- [play with FPGA learning 5 in simple terms ----- reset design]
- TIPC Getting Started6
猜你喜欢

Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)

【云原生】2.5 Kubernetes 核心实战(下)
![[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?](/img/66/674a06d8e45a31ae879b81554ef373.png)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?

flink二开,实现了个 batch lookup join(附源码)
![[play with FPGA learning 4 in simple terms ----- talk about state machine design]](/img/e0/95f8b8c5116c57455e54ad12372f12.png)
[play with FPGA learning 4 in simple terms ----- talk about state machine design]

The most detailed MySQL installation tutorial

PHP tea sales and shopping online store

Skills of PLC recorder in quickly monitoring multiple PLC bits

Basic usage of MySQL in centos8

ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
随机推荐
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
[ark UI] implementation of the startup page of harmonios ETS
C# 文件与文件夹操作
Verilog 和VHDL有符号数和无符号数相关运算
PowerBI中导出数据方法汇总
TIPC Service and Topology Tracking4
LVM操作
[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]
How to implement tabbar title bar with list component
Summary of data export methods in powerbi
【IDEA】使用插件一键逆向生成代码
sql left join 主表限制条件写在on后面和写在where后面的区别
PHP tea sales and shopping online store
sqlite 修改列类型
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
Uncover the secrets of Huawei application market application statistics
Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
[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
String (Analog