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.复合语句是可以包含其他块的块;变量、条件处理程序和游标的声明;以及流控制结构,如循环和条件测试。