assume ther are 5000 records in a database and want to fetch using cursor. cursor fetches only 3000 records and fetch is not happening for remaining 2000 records. why it happens and how to rectify it

Answer Posted / anonumous

it would be FETCH 300 ONLY

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the name of some fields form sqlca.

615


What is database alias db2?

616


SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected

10790


What is dbrm in db2 database?

594


Name the lockable units in DB2?

669






Which component is responsible for processing sql statements and selecting access paths?

675


Mention the location where the output received from explain statement is stored.

635


Is ibm db2 free?

581


Can we update view in db2?

563


What is the physical storage length of the data types date, time, and timestamp?

615


What db2 400?

684


What is cursor stability in db2?

814


Are views updateable?

649


How to run db2 command in windows?

656


What is bind and rebind in db2?

656