– 創(chuàng)建一個(gè)存儲(chǔ)過(guò)程,功能是計(jì)算兩個(gè)數(shù)的乘積 /* CREATE PROCEDURE CalculateProduct ( @num1 INT, @num2 INT ) AS BEGIN DECLARE @product INT;
SET @product = @num1 * @num2;
SELECT @product AS Product; END */
– 使用存儲(chǔ)過(guò)程來(lái)計(jì)算兩個(gè)數(shù)的乘積 /* EXEC CalculateProduct 5, 10; */