select bh,"a"+padl(recno(),4,"0") xh from a union all select bh,"b"+padl(recno(),4,"0") from b union all select bh,"c"+padl(recno(),4,"0") from c into cursor abc
index on right(xh,4) tag aa
copy to aa fields bh
use aa
browse
也是很慢,
分成三句生成三个文件然后追加一个文件再索引,虽然打命令多一一点,速度会快点的。
select bh,"a"+padl(recno(),4,"0") xh from a
into table ls1
select bh,"b"+padl(recno(),4,"0") xh from b
into table ls2
select bh,"c"+padl(recno(),4,"0") xh from c
into table ls3
select ls1
appe from ls2
appe from ls3
inde on righ(xh,4) to ls0
brow
[
本帖最后由 sylknb 于 2015-7-16 10:41 编辑 ]