2010-06-23 15 views

Répondre

8
  • Explain vous donnera plus d'informations sur une requête,
  • describe vous donnera plus d'informations sur tables ou colonnes.

Vous pouvez également utiliser EXPLAIN sur un nom de table, auquel cas il se comportera exactement comme DESCRIBE.

EXPLAIN SELECT * 
FROM `customer` 

id select_type table type possible_keys key key_len ref rows Extra 
1 SIMPLE customer ALL NULL NULL NULL NULL 2 

contre

DESCRIBE `customer` 
Field Type Null Key Default Extra 
CustomerID varchar(2) NO  
Cx varchar(3) NO