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
B37 abend during spufi?
What type of database is db2?
Mention data types used in db2 ?
What is sqlca’s maximum length?
What is iseries database?
what is db2 restart?
Explain db2.
How to check sequence on a table in db2?
Explain about mirror activator disk mirroring?
What is scrollable cursor in db2?
What is the syntax for FETCH in DB2 ?
My sql statement select avg(salary) from emp yields inaccurate results. Why?
What is db2 stogroup?
How will you return the number of records in table?
Define declaration generator (dclgen).