Skip to content

DESCRIBE

DESCRIBE Users;
+--------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| username | varchar(100) | YES | | NULL | |
| email | varchar(100) | YES | | NULL | |
| password | varchar(100) | YES | | NULL | |
+--------------+--------------+------+-----+---------+----------------+

The DESCRIBE statement in MySQL provides a summary of the metadata associated with a specified database table. Here, it describes the structure of the ‘Users’ table including details about each field or column such as name, data type, whether the field can accept null values, the key type, the default value, and any extra information.