zoukankan
html css js c++ java
对多表联合查询的SQl语句的改进,大幅提高查询性能 (转)
常用的多表联合查询的sql语句:
select table1.ID from table1 inner join table2 on table1.ID=table2.ID
where table2.col2='xxx'
改进后:
select a.ID from table1 a,
(select col1,ID from table2 where col2='xxx') b
where a.ID=b.ID
查看全文
相关阅读:
分库分表(1) --- 理论
Elasticsearch(10) --- 内置分词器、中文分词器
Elasticsearch(9) --- 聚合查询(Bucket聚合)
Elasticsearch(8) --- 聚合查询(Metric聚合)
Elasticsearch(7) --- 复合查询
Elasticsearch(6) --- Query查询和Filter查询
Elasticsearch(5) --- 基本命令(集群相关命令、索引CRUD命令、文档CRUD命令)
第二周 Word版面设计
第六周 Word目录和索引
第五周 Word注释与交叉引用
原文地址:https://www.cnblogs.com/xlfj521/p/969998.html
最新文章
javascript中的关联数组
数据库设计时不得不违背三范式的情景
Oracle 数据库优化-分析现有的sql
Oracle索引(B*tree和Bitmap)学习
Oracle中关于bitmap index的使用问题
hadoop中NameNode、DataNode和Client三者之间协作关系及通信方式介绍
CentOS 7 安装Redis 2.8.7
Linux上Eclipse项目右键菜单没有Maven
Geoserver发布Oracle数据
Geoserver发布WMS服务出错分析
热门文章
Centos配置网卡
使用jmx监控tomcat
【HTML】--- 列表、表格、form表单标签
【HTML】---常用标签(1)
分库分表(7)--- SpringBoot+ShardingSphere实现分库分表 + 读写分离
分库分表(6)--- SpringBoot+ShardingSphere实现分表+ 读写分离
分库分表(5) ---SpringBoot + ShardingSphere 实现分库分表
分库分表(4) ---SpringBoot + ShardingSphere 实现分表
分库分表(3) ---SpringBoot + ShardingSphere 实现读写分离
分库分表(2) --- ShardingSphere(理论)
Copyright © 2011-2022 走看看