2010-06-23 7 views

risposta

8
  • Explain vi darà ulteriori informazioni su una query,
  • describe vi darà ulteriori informazioni sulle tabelle o colonne.

È anche possibile utilizzare EXPLAIN sul nome di una tabella, nel qual caso si comporterà esattamente come DESCRIVERE.

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 

vs.

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