What is a cursor?

Answer Posted / vinod babu bachina

In DB2 cursor is used to fetch more than one row from a DB2
table. But cursor can fetch only one row at a time. Suppose
if ur retrieving more than one row from table , u have to
use cursor only. If u use SELECT instead of cursor then it
leads to error '' more than one row selected in select'.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a system catalog table in db2?

578


Can we insert update delete in view?

567


What is ibm db2 used for?

596


How to view db2 table structure?

581


What is release/acquire in bind?

642






How do I copy a table in db2?

569


How to test SQL -911 error while developing COB-DB2 program

6698


How to take backup of table in db2?

591


What is database manager in db2?

543


Can you tell me how can you find out the # of rows updated after an update statement?

602


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

1930


Is db2 a database?

566


Explain in detail about buffer manager and its functionalities?

554


What is the difference between cursor and select statement?

607


What is a trigger in the db2 database?

590