当前位置:网站首页>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","黄"))
解释执行,查看索引命中情况
边栏推荐
- [go practical basis] how to verify request parameters in gin
- [go practical basis] how to install and use gin
- Cloudrev self built cloud disk practice, I said that no one can limit my capacity and speed
- 破茧|一文说透什么是真正的云原生
- 知识点很细(代码有注释)数构(C语言)——第三章、栈和队列
- "Interview high frequency question" is 1.5/5 difficult, and the classic "prefix and + dichotomy" application question
- Oracle delete tablespace and user
- Jingdong senior engineer has developed for ten years and compiled "core technology of 100 million traffic website architecture"
- [go practical basis] gin efficient artifact, how to bind parameters to structures
- 京东面试官问:LEFT JOIN关联表中用ON还是WHERE跟条件有什么区别
猜你喜欢
[staff] time sign and note duration (full note | half note | quarter note | eighth note | sixteenth note | thirty second note)
[go practical basis] gin efficient artifact, how to bind parameters to structures
Microservice practice | fuse hytrix initial experience
Multi version concurrency control mvcc of MySQL
[go practical basis] how to customize and use a middleware in gin
WSL installation, beautification, network agent and remote development
别找了,Chrome浏览器必装插件都在这了
微服务实战|声明式服务调用OpenFeign实践
C4D quick start tutorial - Chamfer
Function ‘ngram‘ is not defined
随机推荐
双非本科生进大厂,而我还在底层默默地爬树(上)
1、 QT's core class QObject
分布式服务架构精讲pdf文档:原理+设计+实战,(收藏再看)
Win10 uses docker to pull the redis image and reports an error read only file system: unknown
【Go实战基础】gin 如何绑定与使用 url 参数
cmd窗口中中文呈现乱码解决方法
《统计学习方法》——第五章、决策树模型与学习(上)
「Redis源码系列」关于源码阅读的学习与思考
View the port of the application published by was
Number structure (C language) -- Chapter 4, compressed storage of matrices (Part 2)
Microservice practice | declarative service invocation openfeign practice
CSDN Q & A_ Evaluation
Mirror protocol of synthetic asset track
2022/2/13 summary
Jd.com interviewer asked: what is the difference between using on or where in the left join association table and conditions
Programmers with ten years of development experience tell you, what core competitiveness do you lack?
Watermelon book -- Chapter 6 Support vector machine (SVM)
[go practical basis] how to verify request parameters in gin
远程连接IBM MQ报错AMQ4036解决方法
西瓜书--第五章.神经网络