What are the differences between EXPLAIN and DESC commands in MySQL ?
You can also use EXPLAIN on a table name, in which case it will behave exactly like 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
vs.
DESCRIBE `customer`
Field Type Null Key Default Extra
CustomerID varchar(2) NO
Cx varchar(3) NO
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With