当前位置:网站首页>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 .
边栏推荐
- Dear pie users, I want to confess to you!
- 为什么用葫芦儿派盘取代U盘?
- MySQL里记录货币
- 亲爱的派盘用户,我要向您表白!
- OpenGL es: (3) EGL, basic steps of EGL drawing, eglsurface, anativewindow
- Talking from mlperf: how to lead the next wave of AI accelerator
- SystemVerilog学习-09-进程间同步、通信和虚方法
- 码蹄集 - MT3114 · 有趣的平衡 - 用样例通俗地讲解
- OpenGL es: (4) detailed explanation of EGL API (Continued)
- scope 数据导出mat
猜你喜欢

CJC8988带2个立体声耳机驱动器的低功率立体声编解码器

论文学习记录随笔 多标签之GLOCAL

Leetcode Max rectangle, Max square series 84 85. 221. 1277. 1725. (monotonic stack, dynamic programming)

Excel dynamic chart

excel动态图表

Multi label lsml for essay learning records

云盘里资料被和谐了,怎么办?

Fixed height of the first column in El table dynamic header rendering

穿越派 你的数据云行

excel高级绘图技巧100讲(一)-用甘特图来展示项目进度情况
随机推荐
How to add a gourd pie plate
FPGA - 7系列 FPGA内部结构之Clocking -01- 时钟架构概述
SOE spatial analysis server MySQL and PostGIS geospatial database of Postgres anti injection attack
excel可视化
Retention rate of SQL required questions
从诺奖知“边缘计算”的未来!
Code shoe set - mt3149 · and - the data is not very strong. Violent pruning can deceive AC
bat操作ftp上传下载命令
QT write custom control - self drawn battery
Some errors encountered in MySQL data migration
葫芦儿 APP 使用帮助
ONEFLOW source code parsing: automatic inference of operator signature
Oracle create user + Role
Crossing pie · pie pan + Mountain duck = local data management
He struggled day and night to protect his data
OpenGL es: (4) detailed explanation of EGL API (Continued)
LeetCode 最大矩形,最大正方形系列 84. 85. 221. 1277. 1725. (单调栈,动态规划)
SystemVerilog学习-07-类的继承和包的使用
excel動態圖錶
健康照明中应用的LED照明灯