SQL Guide : solidDB® SQL statements : CREATE PROCEDURE : fetch_statement
  
fetch_statement
fetch_statement ::= EXEC SQL FETCH cursor_name
The EXEC SQL FETCH statement fetches rows. If the fetch completed successfully, the column values are stored into the variables defined in the opt_into specification of the EXECUTE or EXECDIRECT statement.
See also
CREATE PROCEDURE