I have just started playing with Stored Procedures.
I have written the following basic Procedure which works from the MySQL command line:
CREATE PROCEDURE `test`(OUT Result INT)
BEGIN
SELECT
COUNT(*) INTO Result
FROM
tms.custmain;
END
At the Command Line
call tms.test(@R);
SELECT @R
and works ok.
When I use the TMyStoredProc I get the error message
OUT or INOUT argument 1 for routine tms.test is not a variable
when I try to execute.
Help please!
Alan
TMyStoredProc & OUT Error
MySQL Server data transferring protocol does not support output parameters. Please refer to this topic.