January 2019
Intermediate to advanced
286 pages
7h 41m
English
The purpose of TYPE is to bring out the type of join used in the query. There are some different types that are not necessarily placed in the order of display, but rather by type of join, and here are these different types:
|
system |
Applies to system tables and contains a record. |
|
const |
This type is very fast because it will read the record only once since it refers to a given value. Here is an example: SELECT * FROM clients WHERE ID=1; |
|
eq_ref |
This type, outside the const, is the best choice because it will be used in all index possibilities and a record is read among the combinations of the previous tables. Here is an example: SELECT * FROM clients,invoices WHERE clients.ID=invoices.clientID; ... |
Read now
Unlock full access