DELIMITER // CREATE FUNCTION OneToCheck ( val CHAR(1) ) RETURNS VARCHAR(1) SQL SECURITY INVOKER BEGIN DECLARE ret VARCHAR(1); set ret = IF(val = '1', '√', ''); RETURN ret; END; // DELIMITER ;