Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 2.67 KB | None | 0 0
  1. mysql> EXPLAIN SELECT  `ModeleVehicule`.`IdModel` ,  `LanguageDescriptions`.`Description`
  2.     -> FROM  `ModeleVehicule` ,  `LanguageDescriptions` ,  `TypeVehicule` ,  `ProduitVehicule` ,  `Produits`
  3.     -> WHERE  `ModeleVehicule`.`ManufacturerID` =121
  4.     -> AND  `ModeleVehicule`.`CodeDesignation` =  `LanguageDescriptions`.`CodeDesignation`
  5.     -> AND  `ModeleVehicule`.`IdModel` =  `TypeVehicule`.`VehicleModelId`
  6.     -> AND  `ProduitVehicule`.`IdVehicle` =  `TypeVehicule`.`IdVehicle`
  7.     -> AND  `Produits`.`CategorieId` =13
  8.     -> AND  `Produits`.`ProduitId` =  `ProduitVehicule`.`ProduitId`
  9.     -> GROUP BY  `ModeleVehicule`.`IdModel`
  10.     -> ;
  11.  
  12.  
  13. +----+-------------+----------------------+------+------------------------------------------------+-----------------+---------+------------------------------------------+------+----------------------------------------------+
  14. | id | select_type | TABLE                | TYPE | possible_keys                                  | KEY             | key_len | REF                                      | ROWS | Extra                                        |
  15. +----+-------------+----------------------+------+------------------------------------------------+-----------------+---------+------------------------------------------+------+----------------------------------------------+
  16. |  1 | SIMPLE      | ModeleVehicule       | REF  | PRIMARY,IdModel,ManufacturerID,CodeDesignation | ManufacturerID  | 4       | const                                    |   93 | USING WHERE; USING TEMPORARY; USING filesort |
  17. |  1 | SIMPLE      | LanguageDescriptions | REF  | PRIMARY,CodeDesignation                        | CodeDesignation | 4       | totalshop.ModeleVehicule.CodeDesignation |    1 |                                              |
  18. |  1 | SIMPLE      | TypeVehicule         | REF  | PRIMARY,VehicleModelId,IdVehicle               | VehicleModelId  | 4       | totalshop.ModeleVehicule.IdModel         |    6 |                                              |
  19. |  1 | SIMPLE      | ProduitVehicule      | REF  | PRIMARY,IdVehicle,ProduitId                    | IdVehicle       | 4       | totalshop.TypeVehicule.IdVehicle         |  545 |                                              |
  20. |  1 | SIMPLE      | Produits             | REF  | PRIMARY,ProduitId,CategorieId                  | ProduitId       | 68      | totalshop.ProduitVehicule.ProduitId      |    1 | USING WHERE                                  |
  21. +----+-------------+----------------------+------+------------------------------------------------+-----------------+---------+------------------------------------------+------+----------------------------------------------+
  22. 5 ROWS IN SET (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement