create procedure wang @ls int,@yh int,@ck int,@je numeric(10,2),@d int  as                 update jkw with(rowlock) set xcz=xcz-@je,lat=getdate() where ckh#=@ck  
                                                   
insert jkw with(rowlock) (ckh,fs,lbm,lgz,lsh,rq,czr,je,fsd) select @ck,3,0,@d/10000%10000,@ls,getdate(),    
@yh,-@je,@d%10000不明白以下几个参数值是什么?请大神祥细说明一下
 @ls int,@yh int,@ck int,@je

解决方案 »

  1.   

    @ls, @yh, @ck都是整型,@je是数值型,具体的值要看你传进来的是什么。
      

  2.   

    create procedure wang @ls int,@yh int,@ck int,@je numeric(10,2),@d int  as                 update jkw with(rowlock) set xcz=xcz-@je,lat=getdate() where ckh#=@ck  
                                                       
    insert jkw with(rowlock) (ckh,fs,lbm,lgz,lsh,rq,czr,je,fsd) select @ck,3,0,@d/10000%10000,@ls,getdate(),    
    @yh,-@je,@d%10000
    解释:创建存储过程,名叫wang,参数有@ls/@yh/@ck/@d 均为整型类型,@je是浮点型,整型一般就是0,1,2,3这类,浮点型你可以传入1.0这种格式,它会隐式转换