当前位置:网站首页>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 .
边栏推荐
猜你喜欢

Advanced drawing skills of Excel lecture 100 (1) - use Gantt chart to show the progress of the project

Call us special providers of personal cloud services for College Students

68 Cesium代码datasource加载czml

Send you through the data cloud

3D printer threading: five simple solutions

解决麒麟V10上传文件乱码问题

Essay learning record essay multi label Global

excel高级绘图技巧100讲(一)-用甘特图来展示项目进度情况

Some errors encountered in MySQL data migration

相同区域 多源栅格数据 各个像元行列号一致,即行数列数相同,像元大小相同
随机推荐
highmap gejson数据格式转换脚本
On the first day of the new year, 3000 Apache servers went down
4GB大文件,如何实时远程传输和共享?
SystemVerilog学习-07-类的继承和包的使用
数据库问题,如何优化Oracle SQL查询语句更快,效率更高
How to add a gourd pie plate
Through cooperation with the University of international trade, we can increase efficiency for college students
ArcServer密码重置(账号不可以重置)
Primary application case of Excel DuPont analyzer
数据库er图组成要素
Skywalking integrated Nacos dynamic configuration
OpenGL es: (3) EGL, basic steps of EGL drawing, eglsurface, anativewindow
Geoffrey Hinton: my 50 years of in-depth study and Research on mental skills
如何添加葫芦儿派盘
Build 2022 上开发者最应关注的七大方向主要技术更新
PLA不粘貼在床上:6個簡單的解决方案
Scope data export mat
SystemVerilog学习-08-随机约束和线程控制
Essay learning record essay multi label Global
Advanced drawing skills of Excel lecture 100 (1) - use Gantt chart to show the progress of the project