当前位置:
代码迷
>>
VFP
>> 两表字段替换解决思路
详细解决方案
两表字段替换解决思路
热度:
5712
发布时间:
2013-02-26 00:00:00.0
两表字段替换
表1
xm,zybj,cj
表2
xm,zybj,cj
我想将表1中cj用表2的cj替换,条件是表1中xm,zybj与表2中xm,zybj相同.
应该怎么办?
我用的是VFP6.0
------解决方案--------------------------------------------------------
use 表2
scan
update 表1 set 表1.cj=表2.cj where 表1.xm=表2.xm and 表1.zybj=表2.zybj
endscan
相关解决方案