站长资源数据库
sql中返回参数的值
简介declare @name varchar(50) exec sp_executesql N'select @value=姓名 from people where 人员编号=''0001''',N'@value varchar(50) output',@name outputselect @na
declare @name varchar(50)
exec sp_executesql N'select @value=姓名 from people where 人员编号=''0001''',N'@value varchar(50) output',@name output
select @name