Synopsis
Description
Use theDECLARE statement directly after the begin keyword in
routines to define one or more variables with an identifier as name.
Examples
A simple declaration of the variablex with the tinyint data type and the
implicit default value of null:
DECLARE
statement in combination with other statements are available in the SQL
routines examples documentation.