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

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

WBOY
Release: 2016-06-13 10:06:29
Original
990 people have browsed it


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


(T114)
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template