1.

What Are The Steps That Need To Be Performed To Use An Explicit Cursor? Discuss Briefly.

Answer»

The steps that need to be performed on explicit cursor are −
DECLARE − assigns a NAME to the cursor and defines the structure of query within it.
OPENEXECUTES the query, whereby the rows returned by the query are available for fetching.
FETCH − assigns values from the current row (cursor POSITION) into SPECIFIED variables.
CLOSE − releases the memory space.

 

The steps that need to be performed on explicit cursor are −
DECLARE − assigns a name to the cursor and defines the structure of query within it.
OPEN − executes the query, whereby the rows returned by the query are available for fetching.
FETCH − assigns values from the current row (cursor position) into specified variables.
CLOSE − releases the memory space.

 



Discussion

No Comment Found