13.6 Compound Statement Syntax复合语句语法

13.6.1 BEGIN ... END Compound Statement复合语句
13.6.2 Statement Labels语句标签
13.6.3 DECLARE Statement陈述
13.6.4 Variables in Stored Programs存储程序中的变量
13.6.5 Flow Control Statements流量控制语句
13.6.6 Cursors指针
13.6.7 Condition Handling条件处理
13.6.8 Restrictions on Condition Handling条件处理限制

This section describes the syntax for the BEGIN ... END compound statement and other statements that can be used in the body of stored programs: Stored procedures and functions, triggers, and events. 本节介绍BEGIN ... END复合语句和其他可在存储程序体(存储过程和函数、触发器和事件)中使用的语句。These objects are defined in terms of SQL code that is stored on the server for later invocation (see Chapter 25, Stored Objects).这些对象是根据存储在服务器上供以后调用的SQL代码定义的(请参阅第25章,“存储对象”)。

A compound statement is a block that can contain other blocks; declarations for variables, condition handlers, and cursors; and flow control constructs such as loops and conditional tests.复合语句是可以包含其他块的块;变量、条件处理程序和游标的声明;以及流控制结构,如循环和条件测试。

13.6.1 BEGIN ... END Compound Statement
13.6.2 Statement Labels
13.6.3 DECLARE Statement
13.6.4 Variables in Stored Programs
13.6.5 Flow Control Statements
13.6.6 Cursors
13.6.7 Condition Handling
13.6.8 Restrictions on Condition Handling