SQL - Table Constraints
You try to create a foreign key constraint with:
ALTER TABLE Orders ADD FOREIGN KEY (CustID) REFERENCES Customers(CustomerID);
But get an error: "Cannot add foreign key constraint." What is a likely cause?
ALTER TABLE Orders ADD FOREIGN KEY (CustID) REFERENCES Customers(CustomerID);
But get an error: "Cannot add foreign key constraint." What is a likely cause?
