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: Use 1/5 primary key from a table as FK of another table...

Re: Use 1/5 primary key from a table as FK of another table...

From: Shawn Ellinger <sellinge_at_csac.com>
Date: Tue, 24 Oct 2000 05:36:08 GMT
Message-ID: <39F52003.A40C7D36@csac.com>

I am guessing here but I think you are saying if you have a primary key with 5 columns in it and you want to use of of the columns as a foreign key? I believe you can use the index as a foreign key as long as the column you are referencing is first in the index list.

Huoy-Jii Khoo wrote:
>
> Hi,
>
> Sorry for the beginner's question.
>
> I was wondering if I could use JUST one out of five primary keys that I
> have in table A as the foreign key of another table, let say table B?
>
> Is that possible in Oracle? Is that ok?
>
> Thanks.
> jii
Received on Tue Oct 24 2000 - 00:36:08 CDT

Original text of this message

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