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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Primary key

Re: Primary key

From: Gert-Jan Strik <gj_at_ietsmet.nl>
Date: Tue, 29 Aug 2000 21:01:59 +0200
Message-ID: <39AC08A7.33315A4@ietsmet.nl>

Any foreign key constraint referencing the primary key of table A would have to be changed as well, which means dropping these particular constraint(s) or adding fieldz to the referencing table(s) and foreign key constraint(s).

Gert-Jan

Lim Chin Yee wrote:

> Table A's primary key is made up of 2 fields( fieldx and fieldy)
> If i were to add in a new field(fieldz) and make it a primary key as
> well,
> what are the consequences?
>
> consequences that i've thought of.
> 1. since fieldz is of null value, existing data cannot be validated
> since the constraints cannot work.
>
> p.s: all 3 fields shld be NON-NULL
>
> TIA

--
(Please reply only to the newsgroup)
Received on Tue Aug 29 2000 - 14:01:59 CDT

Original text of this message

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