When is the results table for the query in a DECLARE CURSOR
statement created?
Answer Posted / shailendra
cursor
declare cursor : it is not exectable statement it take
place in working storage section,it just keep the cursor
on that place where the condition is satisfied which is
define in the quary.
executable statement define in procedure division:
1> open cursor : it define now which cursor open to retrive
data, we can define many cursor at a time.
2> fetch cursor:this statement fetch the record which is
satisfy the condition
3> close cursor : it close the cursor
now if we want to fetch the same record again then it must
to go through open cursor statement again.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is copy pending status in db2?
Explain various types of locks in db2?
Explain about mirror activator disk mirroring?
What is the connection string to connect to the DB2 Database ?
What are types of indexes?
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?
What is difference between alias and synonym in db2?
Is db2 a database?
Is schema the same as database?
what is a corelated subquerry?
What is deadlock in db2?
What are the benefits of using the db2 database?
Explain the function of data manager.
Why cursor is used in db2?
What is cursor with hold option in db2?