I am trying to create a function in my phpmyadmin - does not work ..: / here is my syntax:
DELIMITER $$ CREATE FUNCTION fixString(input varchar) RETURNS varchar BEGIN declare output varchar; SET output = REPLACE(input,'ΓΆ','oe'); RETURN output; END $$ DELIMITER ;
error: # 1064 - You have an error in the SQL syntax; check the manual that matches the version of your MySQL server for the correct syntax to use next to it) RETURNS varchar BEGIN declares the output of varchar; SET output = 'on line 1
any ideas what's wrong? thanks
Fuxi source share