Re: all foreign key should have index?
- From: "lennart@xxxxxxxxxxxxxxxxxxx" <lennart@xxxxxxxxxxxxxxxxxxx>
- Date: 31 Jan 2006 11:45:33 -0800
Tony Rogerson wrote:
> That would be a look up on the primary key though, rather, the key you've
> reference on the foreign key clause....
>
> So in this example...
>
> create table test2 (
> mycol_id int not null constraint pk_test2 primary key clustered
> )
>
> create table myothertable (
> blah int not null constraint pk_myothertable primary key clustered,
> mycol_id int not null references test2 ( mycol_id )
> )
>
> What is the point of indexing mycol_id?
>
delete from test2 where ...
/Lennart
[...]
.
- Follow-Ups:
- Re: all foreign key should have index?
- From: Tony Rogerson
- Re: all foreign key should have index?
- References:
- all foreign key should have index?
- From: Murtuja
- Re: all foreign key should have index?
- From: -CELKO-
- Re: all foreign key should have index?
- From: Tony Rogerson
- all foreign key should have index?
- Prev by Date: Re: Reminder, blatant ad
- Next by Date: Re: all foreign key should have index?
- Previous by thread: Re: all foreign key should have index?
- Next by thread: Re: all foreign key should have index?
- Index(es):
Relevant Pages
|