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: OCI row count ?

Re: OCI row count ?

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Fri, 07 Jan 2000 10:01:11 -0500
Message-ID: <oqvb7s06tjiq42fhjvktdetjpu5r593m3a@4ax.com>


A copy of this was sent to srobidou_at_my-deja.com (if that email address didn't require changing) On Fri, 07 Jan 2000 14:43:58 GMT, you wrote:

>
>
>Hello,
>
>Is there a way with Oracle OCI to get the number of row retrieved by a
>select before calling OCIStmtFetch ?
>

no -- because the number of rows to be fetched is not known until the last row to be fetched is actually fetched. for example, if you "select * from on_billion_Row_Table", you'll start getting rows back right away -- we do not in general build the result set somewhere and then start giving you the data -- rather, we give you the data right from the table and it is not until we find all the data that we know the rowcount ourselves.

>S.Robidou
>
>srobidou_at_yahoo.fr
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Fri Jan 07 2000 - 09:01:11 CST

Original text of this message

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