Home > Backend Development > PHP Tutorial > Examples to explain query optimization technology of MySQL database (1)_PHP tutorial

Examples to explain query optimization technology of MySQL database (1)_PHP tutorial

WBOY
Release: 2016-07-13 17:03:08
Original
861 people have browsed it


Although there are indexes on customer_num and order_num, in the above statement, the optimizer still uses the sequential access path to scan the entire table. Because this statement retrieves a set of separated rows, it should be changed to the following statement:


(T114)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631004.htmlTechArticleAlthough there are indexes on customer_num and order_num, the optimizer still uses the sequential access path in the above statement Scan the entire table. Because this statement retrieves separate rows...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template