Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server add column with foreign key

ALTER TABLE Quotes
    ADD CreatedByUserId INTEGER,
    FOREIGN KEY(CreatedByUserId) REFERENCES Users(UserId);
 
PREVIOUS NEXT
Tagged: #sql #server #add #column #foreign #key
ADD COMMENT
Topic
Name
2+8 =