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: Jonathan Ingram <jonathan.ingram_at_miname.com>
Date: Tue, 29 Dec 1998 14:29:57 -0800
Message-ID: <368957E5.E61F829@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 Tue Dec 29 1998 - 16:29:57 CST

Original text of this message

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