Really simple question what is the difference between DESCRIBE
and EXPLAIN
when using it in a MySQL query ?
They both look as though they product the same results.
Really simple question what is the difference between DESCRIBE
and EXPLAIN
when using it in a MySQL query ?
They both look as though they product the same results.
DESCRIBE and EXPLAIN are synonyms when enquiring for the definition of tables, procedures, etc. EXPLAIN (some query) outlines the plan the query optimiser has come up with the perform your command.
12.3.1 and 12.3.2 of the reference manual have the full details.