declare @name varchar(50)
exec sp_executesql n’select @value=姓名 from people where 人员编号=”0001”’,n’@value varchar(50) output’,@name output
select @name
declare @name varchar(50)
exec sp_executesql n’select @value=姓名 from people where 人员编号=”0001”’,n’@value varchar(50) output’,@name output
select @name