OPEN CURSOR (Embedded SQL)

SEE ALSO CLOSE, DECLARE CURSOR, FETCH, PREPARE, Programmer’s Guide to the Oracle Precompilers

FORMAT

EXEC SQL [FOR { integer | :array_size}]OPEN cursor [USING  {DESCRIPTOR SQLDBA_descriptor  | :variable[[ INDICATOR ]:indicator_variable  [,:variable[ INDICATOR ]:indicator_variable]]... }]

DESCRIPTION cursor is the name of a cursor previously named in a DECLARE CURSOR statement. The optional USING references either the host variable list of variables that are to be substituted in the statement in the DECLARE CURSOR, based on position (the number and type of variables must be the same), or a descriptor name that references the result of a previous DESCRIBE.

OPEN cursor allocates a cursor, defines the active set of rows ...

Get Oracle Database 10g The Complete Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.