how to fetch multiple records without using cursor
Answer Posted / krishna reddy
we must know max no of records we want to fetch.
suppose max no record 50...
01 host-variable.
02 employee occurs 50 times.
05 eno pic 9(4).
05 ename pic A(20).
05 esal pic 9(5).
Declare cursor c1 for select eno,ename,esal from emp;
open c1.
fetch c1 into :host-variable.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is data manager?
What is a db2 collection?
Discuss about db2 bind?
What is db2 connect?
What is schema in db2?
i want to maintain uniqueness on pdf without make lf??????????
What is the difference between oracle and db2?
Where do you specify them?
List out the buffer pools in db2
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
What is deadlock in db2?
What is bind and rebind in db2?
What is dbrm? What it contains?
How can deadlocks be resolved?
How to check table size in db2 sap?