CREATE PROCEDURE myProc @inparam int =-1,@outparam int =10 OUTPUT 
AS
SELECT @outparam = 100
IF  (@outparam > 0)
    RETURN 1000
ELSE
    RETURN 2000
GO
declare @A int
declare @B int
SET @A = 20
EXEC myProc @A,@B output                       
select @A,@B运行完毕后@A,@B的结果分别为什么?
主要的疑问是return 在其中的作用是什么意思?