Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Would Oracle use index on count(*)?
Jim Morgan <jimmorgan_at_csi.com> wrote:
> Also, the discussion on using count(column) to force using the primary key
> also applies to ANY index, true?
Sure, as long as none of the indexed columns are nullable. NULL values aren't stored in B*-Tree indexes.
It might not work right if the index isn't UNIQUE, either, come to think of it. You might want to try it and see.
-bn Received on Wed Apr 15 1998 - 11:25:16 CDT
![]() |
![]() |