![]() |
#2
dearwolf41282010-07-28 13:13
|
update Ap_detail set Ap_detail.icamount= from Ap_detail,purbillvouchs where Ap_detail.ccode=purbillvouchs.cdebithead and Ap_detail.cvouchid='02115784'and purbillvouchs.pbvid=6900 and Ap_detail.icamount<>
我写了这样一个语句 可更新的结果 是每个符合Ap_detail.cvouchid='02115784'and purbillvouchs.pbvid=6900 条件的 记录的 icamount 都变成一样的了
而我想要的是 根据purbillvouchs表中purbillvouchs.pbvid=6900 的记录 和Ap_detail.cvouchid='02115784'的记录一一对应起来 更改