how to fetch multiple records without using cursor

Answers were Sorted based on User's Feedback



how to fetch multiple records without using cursor..

Answer / mahi

I think it can be done with the help of arrays or Tables(in
cobol)

Is This Answer Correct ?    1 Yes 2 No

how to fetch multiple records without using cursor..

Answer / 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

how to fetch multiple records without using cursor..

Answer / anto

The question is to fetch multiple records...not multiple
row(s)..
So this is possible with single select query.

Is This Answer Correct ?    0 Yes 1 No

how to fetch multiple records without using cursor..

Answer / srini

It is possible in DB2 V8

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More DB2 Interview Questions

How do I optimize a query in db2?

0 Answers  


What is ibm db2 client?

0 Answers  


What is the difference between CS and RR isolation levels?

1 Answers  


What is the syntax for FETCH in DB2 ?

0 Answers   MCN Solutions,


Is db2 relational database?

0 Answers  






What is DCLGEN ?

3 Answers  


can any one give the list of some important sql abend codes which r frequently asked in interviews?

2 Answers  


How to select the duplicate rows from a table?

4 Answers  


What is a root page?

1 Answers  


What is the syntax of SELECT statement when embedded in a COBOL program?

2 Answers  


What is consistency token in db2?

0 Answers  


What is the difference between TYPE 1 index & TYPE 2 index

1 Answers   IBM,


Categories