Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to define a non primary composite key in sql

ALTER TABLE dbo.YourTable
ADD CONSTRAINT UC_YourTable_Col1_Col2
UNIQUE(Col1, Col2)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #define #primary #composite #key #sql
ADD COMMENT
Topic
Name
4+9 =