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

Home -> Community -> Mailing Lists -> Oracle-L -> FK -> PK internal checks

FK -> PK internal checks

From: Shevtsov, Eduard <EShevtsov_at_flagship.ru>
Date: Fri, 13 Oct 2000 18:24:06 +0400
Message-Id: <10648.119180@fatcity.com>


Hi List

Let say I have a table with five foreign keys (not null columns) which point to 5 tables. When I insert a row into the table Oracle must check that there are corresponding values in the PKs/Unique Keys of these tables. How does Oracle perform this check? It's not recursive sql, is it? I'm interested in internals. Am I correct if I say that Oracle checks index entries for each PK's index until the first corresponding value is found? It seems it's worth enough (minimum 2 reads for each PK)

Am I on the right way?

Thanks in advance Received on Fri Oct 13 2000 - 09:24:06 CDT

Original text of this message

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