Quantcast
Channel: » SQL Constraint and Keys
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

Primary Key, Unique Key Constraints – Clustered Index and Non Clustered Index

You can use the below script to create the Primary Key on the already existing tables. Primary key enforces a uniqueness in the column and created the clustered index as default. Primary key will not...

View Article


Image may be NSFW.
Clik here to view.

Script to Create Foreign Key on the Compound Primary Key

Compound Primary key is a primary key which is created on more than one column. Now the questions is how to create the foreign key for the compound primary key where it references more than one column....

View Article

Browsing latest articles
Browse All 2 View Live