执行带有输出的procedure
ALTER PROCEDURE [dbo].[copy_student]?
?@id int,@name varchar(50) output
AS
select @name=name from student
where id=@id
?
?
执行格式:
declare @name varchar(50)
exec copy_student @id='2',@name=@name output
select @name
发布时间: 2012-08-25 10:06:20 作者: rapoo
执行带有输出的procedure
ALTER PROCEDURE [dbo].[copy_student]?
?@id int,@name varchar(50) output
AS
select @name=name from student
where id=@id
?
?
执行格式:
declare @name varchar(50)
exec copy_student @id='2',@name=@name output
select @name