如何得到sql存储过程的返回值

如下代码所示:

变量赋值写在存储过程名称前面,不是exec前面。

declare @rst int
 exec @rst=[SP_iApplicationStat_ForSingle] '2012-02-14 00:00:00', '2012-02-14 23:59:59'
select @rst
 

猜你喜欢

转载自wandejun1012.iteye.com/blog/1422660