Subject | RE: [firebird-support] FK's and NULL |
---|---|
Author | Helen Borrie |
Post date | 2004-10-28T02:52:14Z |
At 12:43 PM 28/10/2004 +1000, you wrote:
when enforcing a 1:1 relationship.
(mutually exclusive) other. If you are using the CASCADE rules, then the
SET NULL rules don't apply, obviously...
./hb
> > Even if there is a parent key that is NULL (which is allowedOf course. Foreign keys by nature are never meant to be unique, except
> > on one row in the parent table if the referenced key is a
> > UNIQUE constraint), the nulled child rows still have no
> > parent, since (NULL==NULL) can never be true.
> >
> > ./heLen
> >
>Hi Helen
>
>Is it "legal" to define a table which contains FK's and these FK fields
>accept NULL? (the FK's are not part of the PK).
when enforcing a 1:1 relationship.
>As I am getting no errors from FB when I do this, as well as having uniqueWell, that's one action rule, whereas ON DELETE | UPDATE SET NULL is a
>constraints for the FK fields. I have also defined FK_Constraints so that on
>delete and update the result is cascade.
(mutually exclusive) other. If you are using the CASCADE rules, then the
SET NULL rules don't apply, obviously...
./hb