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: Getting Record Count from SELECTs

Re: Getting Record Count from SELECTs

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Tue, 11 Oct 2005 18:14:11 +0200
Message-ID: <h5pnk15qqih5uav4l2h4ae5d2qi5k6dbjn@4ax.com>


On 11 Oct 2005 08:45:41 -0700, "GeoPappas" <PappasG_at_gmail.com> wrote:

>Is there any way to get the record count from a SELECT statement
>without having to run another query?
>
>For example, say you have a query as follows:
>
>SELECT * FROM temp WHERE create_date < TO_DATE( '01/01/2005',
>'MM/DD/RRRR' );
>
>Is there any way to get the record count without having to run anothe
>SELECT, such as:
>
>SELECT COUNT(*) FROM temp WHERE create_date < TO_DATE( '01/01/2005',
>'MM/DD/RRRR' );
Look up the SQL%ROWCOUNT or <cursor_name>.ROWCOUNT attribute in your PL/SQL manual.

--
Sybrand Bakker, Senior Oracle DBA
Received on Tue Oct 11 2005 - 11:14:11 CDT

Original text of this message

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