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?
Answer / harsha
I feel yes, we can fetch the same cursor in the same
program.
Cursor can be closed in three ways.
1 When you explicitely close trhe cursor.
2 Issuing commit systement.
3 After execution of an application program.
In our situation, none of the above mentioned case is
getting true.
Is This Answer Correct ? | 11 Yes | 2 No |
What is the role of the data page in the db2 database?
I have 3 cursors declared. Cursor1 retieves some data. Based on this curso2 will also fetches some data. In cursor3 (using for some updation) I'm using the data retrieved by the above 2 cursor. My question is, while working with cursor3, periodically if I give commit, will all the three crsors will be closed or only cursor3 will be closed?
What is a synonym ?
What are host variables in db2?
If we have 100 records in the PF, we deleted all the records then what is the Size of the PF?
what is a plan and how do you refer the plan in the program?
What is image copy?
What is the result of open cursor statement?
How to retrieve rows from a db2 table in embedded sql?
What is copy pending status in db2?
How to resolve -805 error in DB2?
Before you give the explain statement, what are the prerogatives?