I have a FK in my table that looks like this:
Clearly, I should be able to insert NULL
into this column as well as any value that exists in the parent table.
But when I try to insert NULL
, I get the following error:
The INSERT statement conflicted with the FOREIGN KEY constraint "users_fk". The conflict occurred in database "mydatabase", table "dbo.country", column 'country_id'.