当前位置:网站首页>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 .
边栏推荐
- FPGA - 7系列 FPGA内部结构之Clocking -02- 时钟布线资源
- MySQL怎么存储emoji?
- three.js小结
- MySQL数据迁移遇到的一些错误
- Why use huluer pie disk instead of U disk?
- El tooltip in the table realizes line breaking display
- LED lighting used in health lighting
- 这才是大学生必备软件 | 知识管理
- Essay learning record essay multi label Global
- Beauty of Mathematics - Application of Mathematics
猜你喜欢

LED lighting used in health lighting

亲爱的派盘用户,我要向您表白!

Multi label lsml for essay learning records

Continue to learn MySQL

【笔记】电商订单数据分析实战

π disk, turning your computer into a personal private cloud

He struggled day and night to protect his data

Thesis learning record essay multi label lift

Cjc8988 Low Power Stereo codec with 2 stereo headphone drivers

基于LabVIEW的计时器
随机推荐
Bat operation FTP upload and download command
千万不要把笔记视频乱放!
Linux closes the redis process SYSTEMd+
Call us special providers of personal cloud services for College Students
Flink实战--多流合并
TIDB数据库特性总结
SOE空间分析服务器 MySQL以及PostGres的地理空间库PostGIS防注入攻击
健康照明中应用的LED照明灯
scope 数据导出mat
How to transmit and share 4GB large files remotely in real time?
linux 关闭redis 进程 systemd+
Advanced drawing skills of Excel lecture 100 (1) - use Gantt chart to show the progress of the project
ArcServer密码重置(账号不可以重置)
数据库问题,如何优化Oracle SQL查询语句更快,效率更高
How to add a gourd pie plate
Advanced cross platform application development (II): uni app practice
C language beginner level - realize the minesweeping game
MySQL里记录货币
FPGA - 7系列 FPGA内部结构之Clocking -02- 时钟布线资源
2022 the 8th China International "Internet +" college student innovation and entrepreneurship competition industry proposition track is open for registration!