执行语句: Exec CreateReceivalReport '2024-03-01','2024-03-31','ping2024','1008','','','006',0,0,'1',0 SELECT sum(thisaramount) as amount from( Select b.Code,b.Customer,a.*,b.StopFlag from ReceivalReport a,Customer b where a.CustomerID=b.CustomerID and TerminalName='ping2024' )a 执行返回值如图,并不是我想要的数值,如何解决,谢谢! |