| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
DECLARE Statement
The DECLARE statement is used to define various items local to a
routine:
local variables (see section 18.1.6 Variables in Stored Procedures),
conditions and handlers (see section 18.1.7 Conditions and Handlers) and
cursors (see section 18.1.8 Cursors).
SIGNAL and RESIGNAL statements are not currently supported.
DECLARE may only be used inside a BEGIN ... END compound
statement and must be at its start, before any other statements.