Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

foreign key constraint in ms sql

/*Creating Foreign Key Constraint*/
ALTER TABLE ForeignKeyTable ADD CONSTRAINT ForeignKeyTable_foreignKeyColumn_FK
FOREIGN KEY (foreignKeyColumn) REFERENCES PrimaryKeyTable (PrimaryKeyColumn)
Source by www.riverfronttimes.com #
 
PREVIOUS NEXT
Tagged: #foreign #key #constraint #ms #sql
ADD COMMENT
Topic
Name
2+8 =