Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to get NUM_ROWS?
EBR wrote:
>
> Hi,
>
> I'm using ALL_TABLES and the column NUM_ROWS is always empty. Using
> SELECT COUNT(ROWID) FROM table is unreasonable for very large tables.
> What can I do to get NUM_ROWS instantly?
>
> Thanks,
>
> EBR
> ** Please remove the primes to get my real e-mail
You can anaylze the table (cf: analyze command), but after this point references to NUM_ROWS will be an approximation, not an exact count since people will preumabaly be adding/removing rows from the table
Cheers
--
![]() |
![]() |