I have a stored procedure works great ... but I want to optimize it .. what I need is to declare a variable, assign that variable a value of a field in a table ... but the simple fact of making any change in that procedure throws me an error 1064
-------- more or less that's what I want to implement
declare alf int ;
set alf = (SELECT configurar.dias_vaca from configurar)
despues viene el
select *****
en el cual deseo introducir la variable Alf
****
he probado con:
delimiter
begin .. end
and nothing for certain use:
mariadb 10.1.21 phpmyadmin 4.6.5.2
thanks