Skip Headers
Oracle® Database PL/SQL Language Reference
11g Release 2 (11.2)

Part Number E10472-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

GOTO Statement

The GOTO statement transfers control to a labeled block or statement.

Topics:

Syntax

goto_statement ::=

goto_statement
Description of the illustration goto_statement.gif

Semantics

label

Identifies either a block or a statement (see the syntax diagrams plsql_block ::= and statement ::= and the description of label).

If the GOTO statement cannot find label in the current block, it transfers control to the first enclosing block in which label appears.

Usage

If a GOTO statement exits a cursor FOR loop prematurely, the cursor closes.

GOTO Statement Restrictions

Examples

Related Topics

In this chapter:

In other chapters: