Answer the question
In order to leave comments, you need to log in
How to set multiple foreign keys in one block of code?
I watch a training video: https://www.youtube.com/watch?v=Xux3_o2bImY
At 21 minutes of the video, 2 foreign keys are created from the Orders table to other tables
ALTER TABLE Orders
ADD
FOREIGN KEY (CustomerID) REFERENCES Customers(ID)
FOREIGN KEY(EmployyID) REFERENCES Employees(ID)
GO
Answer the question
In order to leave comments, you need to log in
In real life, usually create with a huge pack and then at different points in time alter with quite visible to the eye creating a field + hanging a constraint.
Moreover, it is logically completely unprincipled where the error occurred there - it should not be (in an ideal world). Well, it goes without saying that "it turned out half" in the form of a field was created, but there is no restriction - this is also extreme - it's like a partial pregnancy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question