Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server add unique constraint two columns

CREATE UNIQUE INDEX uq_yourtablename
  ON dbo.yourtablename(column1, column2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #server #add #unique #constraint #columns
ADD COMMENT
Topic
Name
7+2 =