EXPLAIN |
Expliquer |
|---|---|
| MySQL |
Syntaxe
| EXPLAIN tbl_name |
| EXPLAIN [EXTENDED] SELECT select_options |
Paramètres
| Nom | Description |
|---|---|
| tbl_name | Ce paramètre permet d'indiquer le nom de la table à analyser |
| select_options | Ce paramètre permet d'indiquer la requête SELECT à analyser |
Description
Cette instruction permet de sortir les informations d'entête ayant rapport à l'index d'une table.
Exemple
Voici un exemple montrant une utilisation de cette instruction sur une fonction :
on obtiendra le résultat semblable :
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | NULL | No tables used |
Voir également
Article - Les géants de l'informatique - Oracle
Références
MySQL - Référence, Edition Micro Application, Nicolas Rivereau, Antoine Pichot, 2002, ISBN: 2-7429-2560-0, page 905.
MySQL: The definitive guide to using, programming, and administering MySQL 4 databases - Second Edition, Paul Dubois, 2003, ISBN: 0-7357-1212-3, page 866
Dernière mise à jour : Lundi, le 14 septembre 2015