夕字五笔怎么打,联通手机充值卡批发,fiinal
创建存储过程:
alter procedure [dbo].[getcustomers] (@rowcount int output) as select [customerid] ,[companyname] ,[contactname] ,[contacttitle] ,[address] ,[city] ,[region] ,[postalcode] ,[country] ,[phone] ,[fax] from [northwind].[dbo].[customers] set @rowcount=@@rowcount
接收输出参数:
declare @count int execute getcustomers @count output print @count
2,带返回值
创建存储过程:
alter procedure [dbo].[getcustomers] as select [customerid] ,[companyname] ,[contactname] ,[contacttitle] ,[address] ,[city] ,[region] ,[postalcode] ,[country] ,[phone] ,[fax] from [northwind].[dbo].[customers] return @@rowcount
接收返回值:
declare @count int execute @count=getcustomers print @count
以上所述是小编给大家介绍的sql server 存储过程调用存储过程接收输出参数返回值,希望对大家有所帮助
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
数据库SQL---数据库、基本表、视图、索引的定义、修改、删除
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (上)
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (下)
网友评论