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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to add foreign key to a table

Re: How to add foreign key to a table

From: Odysseus Marcopolus <omarcopolus_at_fast.net>
Date: 1998/03/04
Message-ID: <6dkuem$7c4$1@news1.fast.net>#1/1

alter table TABLENAME

    add constraint CONSTRAINT_NAME foreign key (COLUMN)

       references TABLENAME (COLUMN) <on delete cascade>

Laura Bellini wrote in message <01bd47b3$99625b80$863612ac_at_pw48>...
>Hi -
>
>Can someone please tell me the SQL command(s) for adding a foreign key to a
>table? I want to be able to name the foreign key that I assign as well.
>
>thanks.
>
>
>Laura Bellini
>laura.bellini_at_compaq.com
Received on Wed Mar 04 1998 - 00:00:00 CST

Original text of this message

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