logoalt Hacker News

ak39last Friday at 10:00 PM1 replyview on HN

By definition, a FK has to reference a PK in the “parent”.


Replies

aidoslast Friday at 11:20 PM

Not quite. It can reference any combination of columns with a unique index (of with the PK is by definition).