When is the results table for the query in a DECLARE CURSOR
statement created?

Answer Posted / biswamoy

You can Declare Cursor either in Working-storage section or
in Procedure division. It is not executable

OPEN CURSOR is executable ( here it creates Result), Fetch
rows within loop then close cursor.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to compare data between two tables in db2?

654


What do you mean by cursor?

578


When reorg is used?

666


What r the comman abends in db2, jcl and cobol???????

1812


What are db2 tables?

639






What is blu acceleration in db2?

599


What is the maximum number of columns in a db2 table?

710


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

2264


Which isolation level provides maximum concurrency?

656


What is a trigger in the db2 database?

590


What is declare cursor?

606


How do I delete a table in db2?

638


What is the difference between dbm cfg and db cfg file in db2 ?

997


Name the various locking levels available?

626


How does a cursor work?

553