Fetching Records from the cursor Assignment Help

Assignment Help: >> Explicit cursors - Fetching Records from the cursor

Fetching Records from the cursor:

FETCH statement loads the row addressed through the cursor pointer into variables and moves the cursor pointer on to the next row ready for the next fetch. After each fetch, the cursor pointer will moves to the next row in the result set.

Syntax

FETCH <cursor name> INTO <variable list>

Example

FETCH C1 INTO x,y;

Here assume the variables x and y are already described. For every column which is used in the SELECT list a corresponding variable in the INTO list must appear. Or else it leads to an error.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd