Skip to content

PRIMARY KEY

CREATE TABLE Employees (
ID int,
Name varchar(255),
Age int,
Address varchar(255),
Salary int,
PRIMARY KEY (ID)
);
Query OK, 0 rows affected (0.21 sec)

This SQL command creates a table named ‘Employees’ with five fields: ID, Name, Age, Address, Salary. The ID field is defined as the PRIMARY KEY. This means that every record in the table must have a unique ID.