X
xhj12077021
Unregistered / Unconfirmed
GUEST, unregistred user!
表:aa(ID,PID,BUYSUM,SALESUM,RESTSUM) 1, 2 0 0 10 2, 4 0 0 200 3, 5 0 0 50 4, 2 10 0 20 5, 5 0 60 -10 6, 4 100 0 300由于各种原因,RESTSUM字段值 经常错误,要进行调整。要求:相同PID,本条RESTSUM=上条RESTSUM+本条BUYSUM-本条SALESUM,