当前位置: 代码迷 >> Sql Server >> 参数存储过程有关问题,等!
  详细解决方案

参数存储过程有关问题,等!

热度:7   发布时间:2016-04-27 15:29:35.0
参数存储过程问题,急等!!!
create proc proc_test
@x nvarchar(50),@y datetime,@z datetime,@m money output
as
select @m=sum(je) from a where ckrq between @y and @z
go
exec proc_test @x=A1101,@y='2006-2-5',@z='2008-2-5' 

[email protected],@y,@[email protected],不知道哪错了,总是没有数据返回。

------解决方案--------------------
declare @i int--定义输出值类型
exec proc_test @x=A1101,@y= '2006-2-5 ',@z= '2008-2-5 ' ,@i output
select @i--查看结果
  相关解决方案