首页 >数据库 >mysql教程 >sql中返回参数的值

sql中返回参数的值

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-07 17:57:161157浏览

sql中返回参数的值

declare @name varchar(50)

exec sp_executesql N'select @value=姓名 from people where 人员编号=''0001''',N'@value varchar(50) output',@name output

select @name

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn