USE [DB_Name]
ALTER TABLE Foreign_Key_Table
ADD CONSTRAINT FK_ForiegnKeyTable_PrimaryKeyTable FOREIGN KEY (ForeignKeyColumn)
REFERENCES PrimaryKeyTable(PrimaryKeyTable_PrimaryKeyColumn);
- ۹۵/۱۱/۲۴
USE [DB_Name]
ALTER TABLE Foreign_Key_Table
ADD CONSTRAINT FK_ForiegnKeyTable_PrimaryKeyTable FOREIGN KEY (ForeignKeyColumn)
REFERENCES PrimaryKeyTable(PrimaryKeyTable_PrimaryKeyColumn);