mysqlfile.sql:
DROP FUNCTION IF EXISTS func1;
DELIMITER //
CREATE FUNCTION func1(N INT) RETURNS INT
BEGIN
RETURN (
select * from Employee;
);
END//
DELIMITER ;
executed source mysqlfile.sql, got an error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
);
END' at line 4
How should I modify the code?