Resumes execution of a procedure that returns result sets.
Syntax 1 – Supported in dbisqlc.
RESUME cursor-name
Syntax 2 – Supported in dbisql.
RESUME [ ALL ]
EXEC SQL RESUME cur_employee;
and
EXEC SQL RESUME :cursor_var;
CALL sample_proc() ; RESUME ALL;
The procedure executes until the next result set (SELECT statement with no INTO clause) is encountered. If the procedure completes and no result set is found, the SQLSTATE_PROCEDURE_COMPLETE warning is set. This warning is also set when you RESUME a cursor for a SELECT statement.
Syntax 1 – supported in dbisqlc but not dbisql (Interactive SQL) or when connected to the database using the SQL Anywhere JDBC driver.
Syntax 2 – supported in dbisql. Resumes the current procedure. If ALL is not specified, executing RESUME displays the next result set or, if no more result sets are returned, completes the procedure. In dbisql, the RESUME ALL statement cycles through all result sets in a procedure, without displaying them, and completes the procedure. This is useful mainly in testing procedures.