Utilizamos cookies propias y de terceros para mejorar la experiencia de navegación, y ofrecer contenidos y publicidad de interés. Al continuar con la navegación entendemos que se acepta nuestra política de cookies.
hola,
soy novato en mysql y estoy tratando de crear la siguiente funcion
delimiter$
CREATE FUNCTION hello(s VARCHAR(20)) RETURNS VARCHAR(50)
BEGIN
IF s = 'test' THEN RETURN 'haha';
END IF;
RETURN'hoho'
end$
delimiter;
resulta que cuando escribo el ";" (punto y coma) me sale el siguiente error
error 1064 (42000): you have an error in your sql sintax; check the manual that corresponds to your mysql server version for the right sintax to use near RETURN 'haha'' at line 3
LA VERSION CON QUE TRABAJO ES mysql-essential-5.2.3-falcon-alpha-win32
ojala puedan ayudarme gracias.