I’m trying to create a MySQL function with multiple inputs, but keep getting an error:
DELIMITER $$
mysql> CREATE FUNCTION jb_test (a CHAR, b CHAR)
-> RETURNS CHAR
-> DETERMINISTIC
-> SET say = CONCAT(a,b);
-> RETURN say;
-> END$$
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 'FUNCTION jb_test (a CHAR, b CHAR)
RETURNS CHAR
DETERMINISTIC
SET say = CONCAT(a,b' at line 1
1 Answer