SQLPrimary Keys


Syntax

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

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