Skip to main content
3 of 3
deleted 1 characters in body; edited title
Aaron Bertrand
  • 181.5k
  • 28
  • 402
  • 619

How to enforce a nullable foreign key?

I have a relation between two tables. The foreign key table can have a row related in the primary table. There's a way to enforce the value of the FK column to be NULL or one of the values of the PK column in the primary table?

Apocatastasis
  • 605
  • 2
  • 7
  • 15