How to create table in sql with foreign key without quary?
Answers
Answered by
0
A FOREIGN KEY constraint does not have to be linked only to a PRIMARY KEY constraint in another table; it can also be defined to reference the columns of a UNIQUE constraint in another table. So in your case if you make AnotherID unique, it will be allowed.
Similar questions
Hindi,
7 months ago
Environmental Sciences,
7 months ago
Computer Science,
1 year ago
Science,
1 year ago