存储过程:
if exists(select * from sysobjects where name='proce_name')drop procedure proce_namegocreate procedure proce_name@id int,@name varchar(10),@outname varchar(20) outas set @outname='历史'; go declare @aa varchar(10);exec proce_name 1,'',@aa out;print @aa;