– 创建一个存储过程,功能是计算两个数的乘积 /* CREATE PROCEDURE CalculateProduct ( @num1 INT, @num2 INT ) AS BEGIN DECLARE @product INT;
SET @product = @num1 * @num2;
SELECT @product AS Product; END */
– 使用存储过程来计算两个数的乘积 /* EXEC CalculateProduct 5, 10; */