Cursor variables
Cursor variables provide a unique service to refer to different context areas in SGA as they can be associated to more than one SELECT statement in the same block. While static cursors remain stuck to a single static SELECT, cursor variables purely act like a pointer variable. At runtime, the pointer can be moved to point to different work areas having different SELECT statements and hence, different result sets.
By virtue of their behavior, a cursor variable differs from a static cursor. Static cursors have the life cycle of only one SQL processing, but cursor variables can live for many SQL statements. Once the processing under a work area is finished, they are ready to move on and point to a different work area. Cursors cannot ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access