当前位置:网站首页>Differences between in and exists in MySQL
Differences between in and exists in MySQL
2022-07-01 06:02:00 【It's very quiet】
MySQL Medium in The statement is to make the appearance and the inner table as hash Connect , and exists A statement is an external statement loop loop , Every time loop Loop and query the inner table . Use scenarios :
If the two tables in the query are the same size , Then use in and exists Not much difference .
If one of the two tables is smaller , One is a big watch , Then the sub query table is very useful exists, Small use of subquery table in.
not in and not exists: If the query statement uses not in, Then the internal and external tables are scanned , No index is used ; and not extsts The subquery of can still use the index on the table . So no matter which watch is big , use not exists All ratio not in Be quick .
边栏推荐
- Build 2022 上开发者最应关注的七大方向主要技术更新
- Code shoe set - mt3114 · interesting balance - explain it with examples
- What if the data in the cloud disk is harmonious?
- 云盘里资料被和谐了,怎么办?
- 穿越派·派盘 + 思源笔记 = 私人笔记本
- uniapp树形层级选择器
- 68 cesium code datasource loading czml
- MySQL中 in 和 exists 的区别
- OpenGL ES: (2) OpenGL ES 与 EGL、GLSL的关系
- Huluer app help
猜你喜欢
skywalking集成nacos动态配置
葫芦儿 APP 使用帮助
OpenGL ES: (3) EGL、EGL绘图的基本步骤、EGLSurface、ANativeWindow
Talking from mlperf: how to lead the next wave of AI accelerator
CJC8988带2个立体声耳机驱动器的低功率立体声编解码器
This is the necessary software for college students 𞓜 knowledge management
3D printer threading: five simple solutions
TIDB数据库特性总结
穿越派·派盘 + Mountain Duck = 数据本地管理
Scope data export mat
随机推荐
亲爱的派盘用户,我要向您表白!
穿越派 你的数据云行
Call us special providers of personal cloud services for College Students
Infinite horizontal marble game
OpenGL es: (3) EGL, basic steps of EGL drawing, eglsurface, anativewindow
How to add a gourd pie plate
MinIO纠错码、分布式MinIO集群搭建及启动
不是你脑子不好用,而是因为你没有找到对的工具
69 cesium code datasource loading geojson
PLA不粘贴在床上:6个简单的解决方案
Leetcode Max rectangle, Max square series 84 85. 221. 1277. 1725. (monotonic stack, dynamic programming)
Continue to learn MySQL
1034 Head of a Gang
这才是大学生必备软件 | 知识管理
OpenGL es: (5) basic concepts of OpenGL, the process of OpenGL es generating pictures on the screen, and OpenGL pipeline
OpenGL ES: (3) EGL、EGL绘图的基本步骤、EGLSurface、ANativeWindow
Looking for high school student developers with similar interests
SOE spatial analysis server MySQL and PostGIS geospatial database of Postgres anti injection attack
skywalking集成nacos动态配置
El tooltip in the table realizes line breaking display