A cursor query identifier is defined to uniquely identify cursors in a relational
database system that supports nested routine invocation. The identifier includes
a cursor nesting level value that corresponds to the nested level at which the
cursor is opened. The identifier also includes a invocation identifier that corresponds
to the routine within which a cursor is opened. The third part of the identifier
is a unique cursor counter. The definition of the cursor query identifier permits
cursors to be opened within nested levels of the same relational database context
and to be uniquely identified for reference by database system and by applications
accessing the system.