Hi frozenmist,
That will not solve my problem. I want to know whether any register value or so is there to store the total number of matching rows for a SELECT query.
Suppose my SELECT query select 100 rows from a 1000 row table, is there any system managed code (like SQLCODE or SQLERRD) contains the value 100 there.
I referred the following link.
http://publib.boulder. ibm.com/infocenter/iseries/v5r3/index.jsp?topic =/db2/rbafzmstfieldde scsqlca.htm...
User Profile
Collapse
-
To get the number of rows affected by a cursor open
Hi,
I have a cursor opened by a PREPARE statement. I need the total number of rows whcih will be fetched by that cursor. Now I am taking the total number by a COUNT(*) of that dynamic SQL. As COUNT(*) affects the performance, I would like to get the same along with the PREPARE statement.
Will any value in the SQLERRD table gives the total number fetched ? If so please specify how it can be done.
Thanks...
No activity results to display
Show More
Leave a comment: