你是不是怕麻烦?
如果是我,回这么做:
select * from *** into cursor XXXX
select xxx
copy to xxx1
select BBBB
append from xxx1
这样回产生过程文件
要不这样:
select * from *** into cursor XXXX
mcount=_tally
for ip=1 to mcount
select xxxx
go ip
scatter to a_m
insert into BBBB from array a_m
endfor
select xxxx
use