Quote:
|
Originally Posted by rahul_s80
moreover explicitely writing DYNAMIC RESULT SETS 0 will also return the 2 resultsets as mentioned in my example above
|
This sounds confusing

. If DB2 considers this statement, it shouldn't return any result set and if it doesn't , no use of the statement at all.
First of all, what i meant to ask in this thread is, how this statement is significant in increasing PERFORMANCE?? or how DB2 manages returning of result sets???
For e.g. , if my procedure expects to return only 2 result sets, and i specify the following statement
DYNAMIC RESULT SETS 3 (or might be more)
how it may decrease the performace?
if its just a memory issue or some other factor also?