28,390
社区成员
发帖
与我相关
我的任务
分享
update a set a.amount=b.amount+a.amount
from (select * from substock where stockid='002') b ,substock a
where a.stockid='001' and a.goodsid=b.goodsid
update substock set amount=b.amount+amount from (select * from substock where stockid='002') b where stockid='001' and goodsid=b.goodsid
update substock set amount=b.amount+a.amount from substock b,a where b.stockid='01' and a.goodsid=b.goodsid