CREATE PROCEDURE test(@subject Varchar(15) Output)ASselect @subject='dgdsgf'GO
DECLARE @aa Varchar(10)execute test @aa outputselect aa=@aa
参考一下上面的