Re: CHILD WITHOUT PARENT (TEMPORARILY) - Mailing list pgsql-novice

From Richard Broersma
Subject Re: CHILD WITHOUT PARENT (TEMPORARILY)
Date
Msg-id 396486430912281505k3f48a7c9j8471c871506de0a4@mail.gmail.com
Whole thread Raw
In response to CHILD WITHOUT PARENT (TEMPORARILY)  (JORGE MALDONADO <jorgemal1960@gmail.com>)
List pgsql-novice
On Mon, Dec 28, 2009 at 2:58 PM, JORGE MALDONADO <jorgemal1960@gmail.com> wrote:
>
 The field
> in the child table that connects to its parent is temporarily filled with a
> value of -1... this causes me not to be able to define a foreign key.

Rather than using -1, perhaps you should use null.  This would be a
valid for it.


--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

pgsql-novice by date:

Previous
From: JORGE MALDONADO
Date:
Subject: CHILD WITHOUT PARENT (TEMPORARILY)
Next
From: Jasen Betts
Date:
Subject: Re: CHILD WITHOUT PARENT (TEMPORARILY)