DELIMITER $$
create procedure `test`(a number,b number)
begin
DECLARE result;
set result=a+b;
END $$
DELIMITER
SELECT * from test(1,2);
Output should be 3
Here "test" is the name of the procedure. How to do this on MYSQL?? This works in SQL Server, but not on MYSQL.
I get 1064(42000) error in the line -SELECT * from test(1,2);