MySQL Tutorial/Procedure Function/Declare — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 13:44, 26 мая 2010
The DECLARE Statement
The DECLARE statement is used to create local variables, conditions, handlers, and cursors within the procedure.
DECLARE must be the first statements immediately within a BEGIN block.
A common declaration is the local variable, which is done with a variable name and type:
DECLARE <name> <data type> [DEFAULT];