当前位置: 代码迷 >> Sql Server >> 待,请高手批点
  详细解决方案

待,请高手批点

热度:59   发布时间:2016-04-27 20:12:06.0
在线等待,请高手批点!
select     sum(namount)-(@[email protected]))   as   sscommisoin,   (@[email protected])   as   commisoin   ,sum(namount)   allnamount,invoice_no
    from   pcinvoicedetail   with(nolock)   where   [email protected]   group   by   invoice_no

@inta=0   @intb=760,在运行时(@[email protected])   as   commisoin竟等于空,为什么会为空,之前写在存储过程还好好的。请高手指点,谢谢!

------解决方案--------------------
[email protected]
select @inta = isnull(@inta,0)
  相关解决方案