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: How to get total number of rows before executing the sql /fetch

Re: How to get total number of rows before executing the sql /fetch

From: Raghunath Sapuram <raghu_at_tkg.com>
Date: 1997/10/08
Message-ID: <343B894E.F27F0760@tkg.com>#1/1

This will help only if it is within the same transaction as the query for which you are counting the rows which will be returned.

Robert Simard wrote:

> On 1 Oct 1997 12:09:19 GMT, Nnoor_at_cris.com (NNOOR) wrote:
>
> Try this select statement in your trigger or procedure.
> declare
> rec_count number;
> begin
> Select count(*)
> into rec_count
> from your_table
> where your_criteria;
> end;

--
Raghunath Sapuram     raghu_at_tkg.com
The Kernel Group, Inc.   (512)433-3358
Received on Wed Oct 08 1997 - 00:00:00 CDT

Original text of this message

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