Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Finding total Rows without count() ?
Hi,
in dba_tables there is a field num_rows this contains the number of rows the
analyze table calculated (if it was analyzed with sample) the last time.
If you like to get a more actual value you can analyze the primary key index
with compute statistics and read out the statistic values (dba_indexes field
distinct keys).
Hope that helps
Eric
Ken Sproule <kenmn_at_tds.net> wrote in message
news:brrd5s8pcpj2mo80gbjtsc2mmf99n7ppcc_at_4ax.com...
> As always, thanks in advance for your help.
>
> I need a fast way to determine the total number of rows in a table. I
> assume somewhere Oracle stores such information about its tables.
> Where is it?
>
> The count() type syntaxes take much too long on tables of say 3+
> million rows, so I'm looking for a fast way to accomplish it.
>
> Post answers to the group, as others might be interested also.
>
> Thanks,
>
> Ken Sproule
> kenmn_at_tds.net
>
>
Received on Wed Dec 15 1999 - 03:35:50 CST
![]() |
![]() |