当前位置:网站首页>Mysql 多列IN操作
Mysql 多列IN操作
2022-07-02 06:33:00 【保护我方胖虎】
语法:
SELECT * FROM 表 WHERE (列1,列2) in((列1值,列2值))
SELECT * FROM 表 WHERE (列1,列2,列n) in((列1值1,列2值1,列n值1),(列1值2,列2值2,列n值2))
示例:
SELECT * from base_vehicle WHERE (plate,color) in (("云BQ6541","蓝"))
SELECT * from base_vehicle WHERE (plate,color) in (("云BQ6541","蓝"),("川E68178","黄"))
解释执行,查看索引命中情况


边栏推荐
- Matplotlib swordsman - a stylist who can draw without tools and code
- Double non undergraduate students enter the factory, while I am still quietly climbing trees at the bottom (Part 1)
- 聊聊消息队列高性能的秘密——零拷贝技术
- 深入剖析JVM是如何执行Hello World的
- Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
- 长篇总结(代码有注释)数构(C语言)——第四章、串(上)
- 微服务实战|微服务网关Zuul入门与实战
- Gocv image reading and display
- Gocv boundary fill
- 数构(C语言--代码有注释)——第二章、线性表(更新版)
猜你喜欢

cmd窗口中中文呈现乱码解决方法

oracle修改数据库字符集

微服务实战|Eureka注册中心及集群搭建

Knowledge points are very detailed (code is annotated) number structure (C language) -- Chapter 3, stack and queue

WSL installation, beautification, network agent and remote development

What is the future value of fluorite mine of karaqin Xinbao Mining Co., Ltd. under zhongang mining?

数构(C语言)——第四章、矩阵的压缩存储(下)
![[go practical basis] how can gin get the request parameters of get and post](/img/fd/66074d157d93bcf20a5d3b37da9b3e.png)
[go practical basis] how can gin get the request parameters of get and post

"Redis source code series" learning and thinking about source code reading
![[go practical basis] gin efficient artifact, how to bind parameters to structures](/img/c4/44b3bda826bd20757cc5afcc5d26a9.png)
[go practical basis] gin efficient artifact, how to bind parameters to structures
随机推荐
win10使用docker拉取redis镜像报错read-only file system: unknown
Multi version concurrency control mvcc of MySQL
Redis sorted set data type API and application scenario analysis
数构(C语言--代码有注释)——第二章、线性表(更新版)
Oracle修改表空间名称以及数据文件
Servlet全解:继承关系、生命周期、容器和请求转发与重定向等
双非本科生进大厂,而我还在底层默默地爬树(上)
【Go实战基础】gin 如何获取 GET 和 POST 的请求参数
A detailed explanation takes you to reproduce the statistical learning method again -- Chapter 2, perceptron model
深入剖析JVM是如何执行Hello World的
Don't look for it. All the necessary plug-ins for Chrome browser are here
Pyspark de duplication dropduplicates, distinct; withColumn、lit、col; unionByName、groupBy
[go practical basis] how to bind and use URL parameters in gin
十年開發經驗的程序員告訴你,你還缺少哪些核心競爭力?
Matplotlib swordsman - a stylist who can draw without tools and code
Watermelon book -- Chapter 5 neural network
Redis installation and deployment (windows/linux)
Ora-12514 problem solving method
告别996,IDEA中必装插件有哪些?
QT qtimer class