1) DECLARE @num1 int , @num2 int
Above statement declares two variables num1 and num2.
I want the addition of two numbers--
SET @num1=10
Error-Must declare the scalar variable "@num1".
2) DECLARE @num1 int =10, @num2 int= 20
is it possible to initialise the variables in the declaration as in the above case.