Using Cursors

The cursor is a data structure that represents a specific location within the active set of rows that the SELECT statement retrieved.

The scope of a cursor is the module in which it is declared. Cursor names must be unique within a module.

The general sequence of program statements when using a SELECT cursor for Query-by-Example is:

The cursor program statements must appear physically within the module in the order listed.