Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Would Oracle use index on count(*)?
aa <aau_at_interlog.com> wrote:
> When I issue an Select count(*) from Table, Oracle always performs a table
> scan even though an index is available. In MS SQL Server, the optimizer will
> chose to scan the index (if one is available) instead of the table. Why
> doesn't Oracle do this?
I think it must be an unique index to be used.
--
Sincerely Yours, Konstantin Kivi, Russia, konst_at_sirena.rinet.ru
aka <k-kivi_at_usa.net>, 2:5020/457.24_at_fidonet.org Received on Tue Apr 14 1998 - 06:19:47 CDT
![]() |
![]() |