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

边栏推荐
- Logu p3398 hamster looks for sugar (double LCA on the tree to judge whether the two paths in the tree intersect)
- Verilog and VHDL signed and unsigned number correlation operations
- What are the methods of adding elements to arrays in JS
- Static variables in static function
- Special topic of binary tree -- acwing 3540 Binary search tree building (use the board to build a binary search tree and output the pre -, middle -, and post sequence traversal)
- spritejs
- The working day of the month is calculated from the 1st day of each month
- 高德根据轨迹画线
- Primary key policy problem
- Creation and use of unified links in Huawei applinking
猜你喜欢

【云原生】2.5 Kubernetes 核心实战(下)
![[AI application] Hikvision ivms-4200 software installation](/img/4e/1640e3cafac13ce4d39520195c3217.png)
[AI application] Hikvision ivms-4200 software installation

PLC-Recorder快速监控多个PLC位的技巧

ctf 记录
![[play with FPGA learning 5 in simple terms ----- reset design]](/img/57/816a59787259dc32b52897c069e1a6.png)
[play with FPGA learning 5 in simple terms ----- reset design]

TIPC messaging3

V2X-Sim数据集(上海交大&纽约大学)

MTK full dump抓取

ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘

Implement custom drawer component in quick application
随机推荐
Native method merge word
Use Huawei performance management service to configure the sampling rate on demand
How to use ide to automatically sign and debug Hongmeng application
Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
CentOS8之mysql基本用法
Indexer in C #
Binary tree topic -- p1030 [noip2001 popularization group] find the first order
三.芯片启动和时钟系统
[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]
从攻击面视角,看信创零信任方案实践
Flick two open, realized a batch lookup join (with source code)
III Chip startup and clock system
TIPC introduction 1
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
mysql 基本语句
函数式接口和方法引用
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
启牛商学院给的股票账户安全吗?能开户吗?
Win11 arm system configuration Net core environment variable
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?