mysql optimizer refers to the query optimizer. The SQL statement will use the query optimizer to optimize the query before querying. The syntax is such as "select uid,name from user where gender = 1;".
Optimizer: Query optimizer
The SQL statement will use the query optimizer to optimize the query before querying. He uses the "select-projection-join" strategy for querying.
You can understand it with an example: select uid,name from user where gender = 1;
This select query first selects based on the where statement, instead of querying all the tables first. Perform gender filtering;
This select query first performs attribute projection based on uid and name, instead of taking out all attributes and then filtering;
Connect these two query conditions to generate the final query result.
Recommended: "mysql tutorial"
The above is the detailed content of what is mysql optimizer. For more information, please follow other related articles on the PHP Chinese website!