19.2.6. DECLARE
Statement Syntax
The DECLARE
statement is used to define
various items local to a routine:
The SIGNAL
and RESIGNAL
statements are not currently supported.
DECLARE
is allowed only inside a
BEGIN ... END
compound statement and must be
at its start, before any other statements.
Declarations must follow a certain order. Cursors must be
declared before declaring handlers, and variables and conditions
must be declared before declaring either cursors or handlers.