根据查询结果进行修改:ResZreportNewTEMP表名
merge into ResZreportNewTEMP a
using ResZreportNewTEMP b
on(A.ID=B.ID)
when matched then update set a.PAYFEE=b.PAYFEE-a.PAYFEE
其中a是要修改的表,b是查询的结果,set a.PAYFEE=b.PAYFEE-a.PAYFEE 进行修改
根据查询结果进行修改:ResZreportNewTEMP表名
merge into ResZreportNewTEMP a
using ResZreportNewTEMP b
on(A.ID=B.ID)
when matched then update set a.PAYFEE=b.PAYFEE-a.PAYFEE
其中a是要修改的表,b是查询的结果,set a.PAYFEE=b.PAYFEE-a.PAYFEE 进行修改