-------根据A流水表,更新B结果表字段逻辑 select AgentID,ProID,SUM(Count) as count into #temp from whmp_web_stock_records where IsVirtual =1 and GID=2 group by AgentID ,ProID update whmp_web_...