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 |
Explain packages.
The only place of VSAM KSDS in DB2 is?
What is a DB2 plan?
What is bind package and plan in db2?
What is the meaning concurrency in the db2 database?
What is an intent lock?
What is the size of a data page?
How would you find out the total number of rows in a db2 table?
what is the process of precompiler?
What is the difference between db2 and oracle?
how do you resolve -818 error in db2. where we have to see time stamp token. i said by seeing in load module and plan .is it correct or not. give clear explination for how to see time stamp token
What is a correlated sub query?