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: Adding a Foreign Key Reference to a table

Re: Adding a Foreign Key Reference to a table

From: Jim Yoshii <yoshii_at_planet.net>
Date: 1997/03/03
Message-ID: <331AEC49.3EA8@planet.net>#1/1

Rob Cole wrote:
>
> Is it possible to add a foreign key reference to a table using the ALTER TABLE
> command. I have tried to find examples of this in the documentation with no
> success.
>
> Rob Cole (rcole_at_cellnet.co.uk):-|

Try

ALTER TABLE table ADD FOREIGN KEY (column) REFERENCES ptable(column);


         James H. Yoshii
 IntelliTech Business Solutions

        yoshii_at_planet.net


Received on Mon Mar 03 1997 - 00:00:00 CST

Original text of this message

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