DELIMITER //

CREATE FUNCTION OneToCheck ( val CHAR(1) )
RETURNS VARCHAR(1)

BEGIN
   DECLARE ret VARCHAR(1);
	   set ret = IF(val = '1', '√', '');
   RETURN ret;
END; //

DELIMITER ;