close databases
set safety off
select sys_zdm from yscs12_f7 into array a1
use yscs11_f7 alias y11 in 0 && 117
select y11
zap
insert into y11 from array a1
select yscs12_f7
for i = 2 to 95
select evaluate(field(i)) from yscs12_f7 into array a1
select y11
do case
case between(i, 2, 18) or i = 20 or between(i, 22, 94)
replace from array a1 fields (field(i)) all
case i = 19
replace from array a1 fields f1_11 all
case i = 21
replace from array a1 fields f1_9 all
case i = 95
replace from array a1 fields f1_107 all
endcase
endfor
select y11
browse
[此贴子已经被作者于2018-12-27 00:40编辑过]