when does the SQL statement gets executed when you use
cursor in the application programming ?
Answer Posted / mna
The process of using cursor is:
1. declare the cursor in working storage: You will write
the SQL query here
2. open the declared cursor : this is when the actual SQL
query is executed and the fetched rows are moved to the
cursor storage.
3. Fetch rows from cursor : Reading rows one by one on the
Cursor just like we read records from a sequential file
4. Close cursor : While fetching if we get an SQLCODE=+100
it is the end of the cursor just like we encounter eof
while reading records from a sequential file. Once this
condition is encountered we will close the cursor.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
B37 abend during spufi?
Give the name of some fields form sqlca.
Which component is responsible for db2 startup and shutdown?
What is ibm db2 database?
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
How can you quickly find out the # of rows updated after an update statement?
What is db2 connect?
Define data page.
Is db2 a mainframe database?
Define declaration generator (dclgen).
What is the information associated with sysibm.syslinks table?
Can we update view in db2?
Is ibm db2 open source?
List out the data types available.
What does a deadlock mean in DB2?