Home > Database > Mysql Tutorial > sql中返回参数的值

sql中返回参数的值

WBOY
Release: 2016-06-07 17:57:16
Original
1147 people have browsed it

sql中返回参数的值

declare @name varchar(50)

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

select @name

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template