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.

  • 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