Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: What's fast way to get total of records

Re: What's fast way to get total of records

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Thu, 25 Sep 2003 18:38:01 -0700
Message-ID: <1064540274.890667@yasure>

zhao wrote:

>Hi,
>
>Can someone tell me what's fast way to get total of records in a table
>except using "select count(*)" statement? Can I get the information from a
>system table?
>
>Thanks,
>
>Andy
>
>

There is no other way.

You could obtain it from the all_tables view, of course, but the value will not be present if statistics haven't been run and will be inaccurate if any changes have taken place since the last time statistics have been run.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Thu Sep 25 2003 - 20:38:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US