Out parameter : Parameters « Procedure Function « SQL / MySQL
- SQL / MySQL
- Procedure Function
- Parameters
Out parameter
delimiter $$
CREATE PROCEDURE half(IN a INT, OUT b INT)
BEGIN
SET b=a/2;
END$$
delimiter ;
mysql>
mysql>
Related examples in the same category