Pages

Thursday, August 22, 2013

SQL SERVER – Primary Key Constraints and Unique Key Constraints | Journey to SQL Authority with Pinal Dave

Primary Key: Primary Key enforces uniqueness of the column on which they are defined. Primary Key creates a clustered index on the column. Primary Key does not allow Nulls. Create table with Primary Key: CREATE TABLE Authors ( AuthorID INT NOT NULL PRIMARY KEY, Name VARCHAR(100) NOT NULL ) GO Alter table with Primary Key:… Continue Reading...

Source: SQL SERVER – Primary Key Constraints and Unique Key Constraints | Journey to SQL Authority with Pinal Dave

No comments:

Post a Comment