Can you use a select query in a loop to fetch multiple rows?
If so what is the advantage of using a cursor?
Answers were Sorted based on User's Feedback
No. In cobol-db2 program, the result of single select should be only one row.
For multi row fetch we must use cursor, else program will abend with -811 sql code.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / satheesh reddi
no...for that we are using cursors. due to cursors we can retrieve or fetch number of rows at a time from the table
| Is This Answer Correct ? | 0 Yes | 0 No |
What is temporal table in db2?
What is db2 instance?
How many databases are there?
i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?
How would one remove old reorg information from the DB2 catalog?
What is the difference between cursor stability and repeatable read isolation levels?
What is a cursor and what is its function?
Where are plans stored?
What is tablespace?
What is meant by repeatable read?
in column y record abc.v abc.s xyz.j abc.h i wan only abc columns how to retrieve thi records
What is cursor with hold option in db2?