Subject | Re: [ib-support] select max(id) |
---|---|
Author | Lucas Franzen |
Post date | 2002-05-07T13:53:09Z |
Jan Agermose schrieb:
When executing "select a MIN (ID)" you'll notice that the
RDB$PRIMRAY-index will be used.
Regards
Luc.
>Because the primary key is defined as an ASCENDING index.
> why is that a select max(id) from XX where id is the primary key on XX
> makes the query read the whole table? Isn't there a implicit index if
> you declare a primary key?
>
> Jan Agermose
When executing "select a MIN (ID)" you'll notice that the
RDB$PRIMRAY-index will be used.
Regards
Luc.