Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Recursive relationship
--------------C738F19DBC494E8FD961F4D1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit
Can you test that ?? And forward the results ?? iT MAY WELL BE ok ?? Surprised that it passed!! One learns every day!!
Louis Avrami wrote:
> Hi all,
>
> I was looking at one of the development databases here at my
> shop and came across the following constraint on a table:
>
> REM Generating create SQL for: CIRQIT.ITEM foreign constraint:
> SYS_C009488
> ALTER TABLE ITEM ADD CONSTRAINT SYS_C009488 FOREIGN KEY (
> ITEM_NBR ,
> VERSION_NBR )
> REFERENCES CIRQIT.ITEM (
> ITEM_NBR ,
> VERSION_NBR ) ;
>
> I was a little surprised that Oracle (8.1.6.0.0) even allowed
> for a self-referencing foreign key constraint to be created.
>
> Can anyone out there give a "formal" explanation or references
> as to why such a recursive relationship is not good? I've used
> the terms "recursive relationship" and "keys referring back to
> themselves", etc. etc.
>
> Thanks
>
> ----------------
> Sent from a WebBox - http://www.webbox.com
> FREE Web based Email, Files, Bookmarks, Calendar, People and
> Great Ways to Share them with Others!
>
> --
> Author: Louis Avrami
> INET: avramil_at_concentric.net
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
--------------C738F19DBC494E8FD961F4D1 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html>
<p>Louis Avrami wrote: <blockquote TYPE=CITE>Hi all, <p>I was looking at one of the development databases here at my <br>shop and came across the following constraint on a table: <p>REM Generating create SQL for: CIRQIT.ITEM foreignconstraint:
<br> SYS_C009488 <br>ALTER TABLE ITEM ADD CONSTRAINT SYS_C009488 FOREIGN KEY ( <br> ITEM_NBR ,
<p>I was a little surprised that Oracle (8.1.6.0.0) even allowed <br>for a self-referencing foreign key constraint to be created. <p>Can anyone out there give a "formal" explanation or references <br>as to why such a recursive relationship is not good? I've used <br>the terms "recursive relationship" and "keys referring back to <br>themselves", etc. etc. <p>Thanks <p>---------------- <br>Sent from a WebBox - <a href="http://www.webbox.com">http://www.webbox.com</a> <br>FREE Web based Email, Files, Bookmarks, Calendar, People and <br>Great Ways to Share them with Others! <p>-- <br>Author: Louis Avrami <br> INET: avramil_at_concentric.net <p>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
<br>-------------------------------------------------------------------- <br>To REMOVE yourself from this mailing list, send an E-Mail message <br>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in<br>the message BODY, include a line containing: UNSUB ORACLE-L <br>(or the name of mailing list you want to be removed from). You may