CALL name_of_stored_procedure(parameters);
Wypróbuj to na karcie „SQL”:
CREATE DEFINER=`root`@`localhost` PROCEDURE `storedprocedure1`(OUT myvar1 CHAR(64))
SET myvar1="IT ";
CREATE DEFINER=`root`@`localhost` PROCEDURE `storedprocedure2`(OUT myvar2 CHAR(64))
SET myvar2="WORKS";
Następnie zadzwoń:
CALL procedure1(@var1);
CALL procedure2(@var2);
SELECT @var1,@var2;