wat is curser?? and its types???

Answer Posted / gagan

A cursor is a temporary area of storage that is used to hold the information that is retreived from the SQL select statements.A cursor is mainly used to point to the table retrieved as a result of select query.
Types of cursor :
Serial cursor: In this the rows retreived from the resulting table are in sequential order .Also once EOF is reached the cursor can not be repositioned
Scrollable cursor:In this the rows retreived are based on the position mentioned on the FETCH statement

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is data area and how it is used in rpg program ?

841


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1563


What is the difference between copybooks and subprocedures in as400?

940


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2289


What is a record lock error?

1356






during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

868


How many program bind in one module....

2230


can I touch the array during treatments?

847


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

590


can you debug ile rpg program using isdb?

825


How can we know running job is batch or interactive?

749


How can we override a file during runtime in rpg?

785


what is an online rpg?

845


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

815


explain sflclr, sflend, sfldlt, and sflcsrrrn?

973