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

Home -> Community -> Usenet -> comp.databases.theory -> Re: all foreign key should have index?

Re: all foreign key should have index?

From: Gene Wirchenko <genew_at_ucantrade.com.NOTHERE>
Date: Wed, 01 Feb 2006 12:06:03 -0800
Message-ID: <1gu1u1htssqdv7kp2q5p3e3a2nf38fhqh3@4ax.com>


On Tue, 31 Jan 2006 22:12:56 +0000, Eric Junkermann <eric_at_deptj.demon.co.uk> wrote:

[snip]

>When you delete a parent row, or update its key, the DBMS needs to find
>the children, either to cascade the operation or to forbid it - how can
>it do this efficiently without an index? But of course if you never do
>those things,
>you might still need it to find child rows efficiently anyway.

     Why does it have to be an index?

Sincerely,

Gene Wirchenko Received on Wed Feb 01 2006 - 14:06:03 CST

Original text of this message

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