Skip to content

Instantly share code, notes, and snippets.

@ArCiGo
Last active May 19, 2019 21:36
Show Gist options
  • Save ArCiGo/5b87567806f87323a028ba5a201b4748 to your computer and use it in GitHub Desktop.
Save ArCiGo/5b87567806f87323a028ba5a201b4748 to your computer and use it in GitHub Desktop.
IF NOT EXISTS(SELECT 1 FROM sys.tables WHERE name = 'Customer')
CREATE TABLE Customer(
Id INT IDENTITY,
FirstName NVARCHAR(40) NOT NULL,
LastName NVARCHAR(40) NOT NULL,
City NVARCHAR(40) NULL,
Country NVARCHAR(40) NULL,
Phone NVARCHAR(20) NULL,
CONSTRAINT PK_CUSTOMER PRIMARY KEY(Id)
);
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment