DESCRIBE command in SQL

The DESCRIBE (or DESC) command in SQL is used to display the structure of a table. It provides information about the columns in a table, including:

SQL Syntax

DESCRIBE table_name;

Example: Create an Employees table.

SQL

CREATE TABLE Employees (
   EmployeeID INT,
    FirstName VARCHAR(20),
    LastName VARCHAR(20),
    Age int
); 

Describe the table by using the DESCRIBE command.

SQL

DESCRIBE Employees
FieldTypeNullKeyDefaultExtra
EmployeeIDintYESNULL
FirstNamevarchar(20)YESNULL
LastNamevarchar(20)YESNULL
AgeintYESNULL