Home  >  Article  >  php教程  >  实例讲解MySQL数据库的查询优化技术 (1)

实例讲解MySQL数据库的查询优化技术 (1)

WBOY
WBOYOriginal
2016-06-13 10:06:29966browse


虽然在customer_num和order_num上建有索引,但是在上面的语句中优化器还是使用顺序存取路径扫描整个表。因为这个语句要检索的是分离的行的集合,所以应该改为如下语句:


(T114)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn