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

Home -> Community -> Usenet -> comp.databases.theory -> Primary -- foreign keys

Primary -- foreign keys

From: keith <prk25_at_yahoo.com>
Date: 10 Aug 2001 06:50:44 -0700
Message-ID: <adbca63f.0108100550.b176fc5@posting.google.com>

Hi

I am trying to understand why would anyone want to create the following:

create table abc
(

    x integer primary key,
    y char(20),
    foreign key (x) references abc(x)
);

What's being accomplished by creating a forein key which references a primary key of the same table??? Primary and foreign keys are on the same column of the same table????

Thanks

Keith Received on Fri Aug 10 2001 - 08:50:44 CDT

Original text of this message

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