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

Home -> Community -> Usenet -> comp.databases.theory -> how to set composite key as foreign key?

how to set composite key as foreign key?

From: rupali007 <member38432_at_dbforums.com>
Date: Sun, 07 Sep 2003 02:27:19 -0400
Message-ID: <3339785.1062916039@dbforums.com>

hi freinds,

i want to set any composite primary key in given table as foreigen key by sql query not by enterprise manager.

suppose i have library as databse and two tables as

books(cAccnumber,ctitle,cedition)

issuedetails(cAccnumber,cMembercode,dDateofissue)

wher cAccnmuber is primary key in books and cAccnumber,cMembercode as composite primary key in issuedetails.so if i want set cAccnumber as foreign key then what will be query structure.

this is possible using enterprise manager but i want to do it by code.so help me if u have any idea.

thanks

--
Posted via http://dbforums.com
Received on Sun Sep 07 2003 - 01:27:19 CDT

Original text of this message

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