|
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.
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.
|