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: EXEC_SQL Question

Re: EXEC_SQL Question

From: OraSaurus <granaman_at_not_home.com>
Date: Fri, 22 Oct 1999 23:43:30 GMT
Message-ID: <CE6Q3.777$1L2.34801@news.rdc1.ne.home.com>


In article <7uoves$b0n$1_at_nnrp1.deja.com>, Sue Han <sue_han_at_my-deja.com> wrote:
>Hi,
>
>I want to get an estimate on number of rows that will be returned by a
>Dynamic SELECT statement before the actual rows are fetched.
>
>Someone told me:
>Informix reports this estimate in it's sqlca data structure when a
>cursor against the query is opened, however, these estimates are
>frequently way off. They depend on statistics gathered that may be out
>of date.
>
>Estimate is exactly what I want. I will get statistics regularly.
>
>Can EXEC_SQL do this and how? What about I connect to Oracle or
>non-Oracle DB?

Try getting the row count from user_tables... The value is updated on 'analyze table TNAME [esitmate|comopute] statistics'.

Received on Fri Oct 22 1999 - 18:43:30 CDT

Original text of this message

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