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: Any way to get RowCount by not using Select count(*) from table

Re: Any way to get RowCount by not using Select count(*) from table

From: Zdenka <zspoljar_at_pm.com.au>
Date: Mon, 04 Jan 1999 03:02:02 GMT
Message-ID: <01be378f$606b7a60$5065a3a8@pmaaumissv5124>


After analyzing the table to this:

select num_rows from dba_tables where table_name = 'xxx...' ....

Regards

Jonathan Ingram <jonathan.ingram_at_miname.com> wrote in article <368957E5.E61F829_at_miname.com>...
> boonsong wrote:
>
> > Any way to get RowCound by not using Select count(*) from table
>
> Yes. Don't select count (*); instead, do one of the following:
>
> select count (1) from <table>;
> select count (rowid) from <table>;
>
> Jonathan
>
>
>
Received on Sun Jan 03 1999 - 21:02:02 CST

Original text of this message

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