当前位置:网站首页>MySQL IN 和 NOT IN () 空列表报错
MySQL IN 和 NOT IN () 空列表报错
2022-07-01 11:04:00 【tuhoooo】
原文地址: MySQL IN 和 NOT IN () 空列表报错
欢迎访问我的博客: http://blog.duhbb.com/
- 如果你主动在 SQL 语句中写
IN (), 则会报错;常见于 MyBatis 或者自己拼写的 SQL 语句中, 如果使用字面量一定要注意这一点; - 如果你是
IN (SELECT xxx FROM xxx)这种的话, 即使SELECT xxx FROM xxx为空也不会报错.
比较好奇的是, 感觉这个挺简单的, 为啥 MySQL 就不处理一下呢?
要是我读懂了 MySQL 的源码, 我就把这个特性加上去, 嘿嘿!
边栏推荐
- 华为HMS Core携手超图为三维GIS注入新动能
- LeetCode 438. Find all letter ectopic words in the string__ sliding window
- 英特爾實驗室公布集成光子學研究新進展
- 爬虫(2) - Requests(1) | Requests模块的深度解析
- Database experiment report (I)
- The list of winners of the digital collection of "century master" was announced
- Valgrind usage of memory leak locating tool
- [.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
- Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
- y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)
猜你喜欢

applyMiddleware 原理

谷歌新论文-Minerva:用语言模型解决定量推理问题

软件项目管理 9.2.软件项目配置管理过程

CPI教程-异步接口创建及使用

CVPR 2022 | self enhanced unpaired image defogging based on density and depth decomposition

kubernetes之ingress探索实践

Harbor webhook从原理到构建

Exposure:A White-Box Photo Post-Processing Framework阅读札记

Oracle和JSON的結合

Suggest collecting | what to do when encountering slow SQL on opengauss?
随机推荐
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
Sqlachemy common operations
Wireshark TS | 快速重传和乱序之混淆
[encounter Django] - (II) database configuration
Huawei Equipment configure les services de base du réseau WLAN à grande échelle
Valgrind usage of memory leak locating tool
Neurips 2022 | cell image segmentation competition officially launched!
Database experiment report (I)
【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>
关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
Prism journal navigation button usability exploration record
Suggest collecting | what to do when encountering slow SQL on opengauss?
PHP realizes lottery function
Detailed explanation of linear regression in machine learning
華為設備配置大型網絡WLAN基本業務
毕业季·进击的技术er
applyMiddleware 原理
持续交付-Pipeline入门
[MPC] ① quadratic programming problem matlab solver quadprog
价值1000毕业设计校园信息发布平台网站源码