Can we use select query in a loop to fetch multiple rows in
a COBOL PROGRAM? If so, what is the advantage of cursor?
Answer Posted / 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 View All Answers
Is db2 a database?
How to test SQL -911 error while developing COB-DB2 program
Name the lockable units in DB2?
What are the benefits of using the db2 database?
How do you eliminate duplicate values in db2?
What is db2 purescale?
When reorg is used?
What is dpf in db2?
Why do chiropractors use drop table?
What is the use of db2 optimizer?
How to resolve deadlock issue
Are view updateable?
List down the types of triggers in the db2 database?
What is nvl in db2?
Explain the benefits you can get from mainframe connect?