You can declare a session variable in this way :
SET @myvarname := 'value';
or a local variable in this way :
DECLARE my_variable varchar(30)
also:
DECLARE my_variable varchar(30) DEFAULT 'value'
You can declare a session variable in this way :
SET @myvarname := 'value';
or a local variable in this way :
DECLARE my_variable varchar(30)
also:
DECLARE my_variable varchar(30) DEFAULT 'value'