SQLPrimary Keys

Syntax

  • MySQL: CREATE TABLE Employees ( Id int NOT NULL, PRIMARY KEY (Id), ... );

  • Others: CREATE TABLE Employees ( Id int NOT NULL PRIMARY KEY, ... );

Related Examples

Creating a Primary Key