In this example,we’ll learn How to Finding The Sum Of The Two Numbers With Stored Procedure.
SQL Query:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Create Procedure sumThree @n1 int, @n2 int, @result int output as Begin Set @result = @n1+@n2 End --To Execute The Procedure Declare @result int Execute sumThree 5,30,@result output Select @result |