RESUME Statement

Resumes execution of a procedure that returns result sets.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

Syntax 1 – Supported in dbisqlc.

RESUME cursor-name

Syntax 2 – Supported in dbisql.

RESUMEALL ]

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

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.

Standards

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—Not supported by Adaptive Server.

Permissions

(back to top)

The cursor must have been previously opened.

Related reference
DECLARE CURSOR Statement [ESQL] [SP]