RESIGNAL Statement

Resignals an exception condition.

Syntax

RESIGNALexception-name ]

Examples

Usage

Within an exception handler, RESIGNAL lets you quit the compound statement with the exception still active, or quit reporting another named exception. The exception is handled by another exception handler or returned to the application. Any actions by the exception handler before the RESIGNAL are undone.

Standards

  • SQL—ISO/ANSI SQL compliant.

  • Sybase—Not supported in Adaptive Server Enterprise. Error handling in Transact-SQL procedures is carried out using the RAISERROR statement.

Permissions

None

Related reference
BEGIN … END Statement
SIGNAL Statement