Describing a Table In order to view the schema of a table, use DESCRIBE or SHOW followed by the table name. CREATE TABLE tbl (i INTEGER PRIMARY KEY, j VARCHAR); DESCRIBE tbl; SHOW tbl; -- equivalent to DESCRIBE tbl; column_name column_type null key default extra i INTEGER NO PRI NULL NULL j VARCHAR YES NULL NULL NULL Describing a Query In order to view the schema of the result of a query, prepend DESCRIBE to a query.
