Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: performance: index on foreign (primary) key ???
You must create an index on the column of the first table...
The primary key of the second table work only for this table!
Mario Perreault, Ville de Québec
DBA \\\|||/// / ^ ^ \ ( 0 0 )
Michael Keppler a écrit :
> Hello everybody !
>
> I have a column that always references the primary key in another table
> as foreign key. Now I do a query on that column in the first table. Can
> I speed up this query by creating an index for the column in the first
> table or will the optimizer use the (primary) index of the second table
> for this ??
>
> Ciao and Good Bye, Michael.
>
> --
> Michael Keppler, MCSE, MCP+I
> IT logic GbR
> Michael.Keppler_at_gmx.de
Received on Sat Sep 18 1999 - 10:45:22 CDT
![]() |
![]() |