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: Foreign key to subset of records

RE: Foreign key to subset of records

From: Evgeny Sorokin <SSEEAA_at_MailAndNews.com>
Date: Mon, 16 Apr 2001 10:42:43 -0400
Message-ID: <3B279A72@MailAndNews.com>

>===== Original Message From "Steve Long" <steven.long_at_erols.com> =====
>you can effect the same result if you simple replace <constant> with a
>column and populate that column with a constant value. you can even use an
>insert trigger and a check constraint to enforce your value of <constant>.
 

>> In this case primary (or unique) key on <master-table> can be
>> (<field2>,<field3>) or (<field2>).

Your advise is usable for case with primary key (<field2>,<field3>) If <master-table> have primary key with only one field, you can not check, is
master record in subset needed. Also it is not very good to use field with constant. Received on Mon Apr 16 2001 - 09:42:43 CDT

Original text of this message

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