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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Is it possible to return the no. of records found

Re: Is it possible to return the no. of records found

From: Neil Catton <NeilC_at_viewraiseltd.demon.co.uk>
Date: 1997/11/22
Message-ID: <rYnGZHAklvd0EwVp@viewraiseltd.demon.co.uk>#1/1

In article <3472E34E.35D07215_at_benau.dk>, Casper Thrane <ct_at_benau.dk> writes
>Hi
>
>Is it possible to return the number of records a query found, instead of
>the actaul recordset?

Rather than use COUNT(*) which will read all the columns associated with the table use a constant i.e. COUNT(1) this performs the same function but is a lot easier on the internals since it does not have to go and search for all the columns. It's quicker too.

-- 
Neil Catton
Received on Sat Nov 22 1997 - 00:00:00 CST

Original text of this message

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