i\'m trying to create a function in my phpmyadmin - doesnt work .. :/ here\'s my syntax:
DELIMITER $$ CREATE FUNCTION fixString(input varchar) RETURNS varchar B
You're using VARCHAR, so you have to indicate a max size:
VARCHAR
DELIMITER $$ CREATE FUNCTION fixString(input varchar(15)) RETURNS varchar(15) BEGIN declare output varchar(15); SET output = REPLACE(input,'ö','oe'); RETURN output; END $$ DELIMITER ;