Can we use select query in a loop to fetch multiple rows in
a COBOL PROGRAM? If so, what is the advantage of cursor?



Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the adv..

Answer / hitendra valluri

As per my knowledge if we loop the select query it retrieves the same data untill we explicitly handle the where clause to retrieve the rows. Unlike select CURSOR fetches all the rows and allows the program to process 1 at a time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

Name the various locking levels available?

0 Answers  


What is a clustering index ?

3 Answers  


How is the value function used?

0 Answers  


can all users have the privilage to use the sql statement select * (dml)?

0 Answers   IBM,


when we are tying to update a table having 100 rows. if the program abends when updating 51 row . how to start updating again from the 51 row .what was the logic

2 Answers   TCS,






What is Call attach facility? How does it work?

1 Answers   Syntel,


List out the buffer pools in db2

0 Answers  


Is it Possible to declare or create a cursor for UPDATE of table? If yes tell me how? If no Tell me why?

1 Answers   IBM, scintel,


what is static sql? what is dynamic sql? Give me details

3 Answers  


What is the advantage in De-normalizing tables in DB2?

0 Answers  


What is a page?

2 Answers  


how to unload different table data into different gdg files/ vsam files.

3 Answers  


Categories