588
社区成员
发帖
与我相关
我的任务
分享
Use Dbf('tb') Again In 0 Alias tb0
Select tb0
Scan for shu > 0
If Seek(tj, 'tb')
Replace next 1 tb.yj with tb.yj + tb0.shu in tb
EndIf
EndScan
Use in tb0
select tj,sum(shu)=yj into # from tb group by tj
update a set a.yj = b.yj from tb a,## b where a.bh=b.tj