Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Enforcement of 1 to many

Re: Enforcement of 1 to many

From: Andrew Babb <andrewb_at_mail.com>
Date: Tue, 27 Apr 1999 21:53:25 +0800
Message-ID: <3725C154.9E41EC15@mail.com>


Hi Cliff,

You could possibly do this through Triggers, but you will need to watch out for Mutating Tables (Trigger term).

Rgds
Andrew

Clifford Buetikofer wrote:

> Gurus,
>
> I need to enforce a 1 ( mandatory ) to many relationship between 2
> tables. Can the database do this or should we control it at the
> application level ? We do have a FK on the child table but how do we
> enforce ALL parents to have at least 1 child ? Procedurally ?
>
> TIA,
> Cliff
> ( I have 2 kids so I'm covered )
>
> The contents of this message express only the sender's opinion.
> This message does not necessarily reflect the policy or views of
> my employer, Merck & Co., Inc. All responsibility for the statements
> made in this Usenet posting resides solely and completely with the
> sender.
Received on Tue Apr 27 1999 - 08:53:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US