DESCRIBE
DESCRIBE is a SQL command used primarily in Oracle and MySQL databases. It provides metadata about a specific database table such as the names of columns, the data types of each column, and whether a column can contain NULL values.
Example
Output
Explanation
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.
Example
Output
Explanation
The DESCRIBE
command in the Oracle SQL displays the structure of a table including columns’ names, their type, and whether they can be null or not. In this example, the DESCRIBE employees;
command provides the details of the employees
table structure.