Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: anyway to estimate number of rows in a query?
You could use execute_immediate to 'explain plan for <sql_statement>',
then you could select plan_table.cardinality to get "approximate"
number of rows. Remember, it is an approximation and requires that you
know the sql statement to be executed beforehand.
HTH
Raj
Received on Wed Dec 24 2003 - 06:56:45 CST
![]() |
![]() |