In MySQL we can use the DESCRIBE
statement to get information about table structure in the database, or to obtain a query execution plan for a query. For example, we can get information about column names, their data types, default values, etc.
The DESC
and EXPLAIN
statements are synonyms of DESCRIBE
, so we can alternatively use those to do the same thing.