sql - Primary & Foreign Key Constraints Confusion - Stack Overflow

PHOTO EMBED

Fri Sep 23 2022 11:08:32 GMT+0000 (UTC)

Saved by @vyadav1910 #sql

ALTER TABLE DopingTest
ADD(
  CONSTRAINT fk_RaceIDDT
    FOREIGN KEY (RaceID, HorseID)
    REFERENCES Results(RaceID, HorseID)
);
content_copyCOPY

https://stackoverflow.com/questions/22180930/primary-foreign-key-constraints-confusion