mike <mike(at)bristolreccc(dot)co(dot)uk> writes:
> I have set up a FK as follows
>
> ALTER TABLE lk_sub_con ADD FOREIGN KEY (type) REFERENCES
> lk_sort_of_contact(type_code);
>
> However when I do this
>
> INSERT INTO lk_sort_of_contact (type_code) VALUES ('1') (ie: a NULL into
> the FK) it works
>
> Is this a bug?
No.
NULLs are permitted in referencing columns unless that column is
declared NOT NULL.
-Doug