Fetch values from a declared cursor.

 

Syntax

 

<FetchStatement> ::= FETCH [ ( CURRENT | NEXT | PRIOR | FIRST | LAST | ABSOLUTE <SimpleExpression> | RELATIVE <SimpleExpression> ) ] FROM <identifier>

 

Usage

 

See example in DECLARE CURSOR Statement topic