Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: