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
List down the data types in the db2 database.
Define sqlca.
How do you select a row using indexes in db2?
What is the max length of sqlca?
What is data manager?
What parameters are used to control the free space in DB2?
Is db2 a mainframe?
Explain the contention situations caused by locks?
What is a db2 package?
is it compulsory commitment control in journal?
What do you mean by cursor?
Mention the location where the output received from explain statement is stored.
What is concurrency?
What is the physical storage length of timestamp data type?
What are host variables in db2?