请教,指正“本来想是27行,为何是21行”
use e:\6dele all
pack
append from h:\7
close all
&&第一列
use e:\6
dele all
pack
append from h:\7
*排序
sele * from e:\6 order by 概桥率1 desc
close all
use e:\6
i=1
do while .not. eof()
repl 概桥排名1 with i
skip
i=i+1
enddo
close all
&&二、加第二列
close all
use e:\6
COPY TO ARRAY myarrar
APPEND FROM ARRAY myarrar
APPEND FROM ARRAY myarrar
UPDATE e:\6 SET 第二列=1 WHERE BETWEEN(RECNO(),1,3)
UPDATE e:\6 SET 第二列=2 WHERE BETWEEN(RECNO(),4,6)
UPDATE e:\6 SET 第二列=3 WHERE BETWEEN(RECNO(),7,9)
*加序号
use e:\6
i=1
do while .not. eof()
repl 序号 with i
skip
i=i+1
enddo
close all
*排序
use e:\6
sort to d:\vfp98\5 on 概桥率2/d
close all
*加概桥排名2序号
use d:\vfp98\5
i=1
do while .not. eof()
repl 概桥排名2 with i
skip
i=i+1
enddo
use e:\6
dele all
pack
append from d:\vfp98\5
drop table d:\vfp98\5
**以序号升序排序
use e:\6
sele * from e:\6 order by 序号 asc
&&三、加第三列
close all
use e:\6
COPY TO ARRAY myarrar
APPEND FROM ARRAY myarrar
APPEND FROM ARRAY myarrar
UPDATE e:\6 SET 第三列=1 WHERE BETWEEN(RECNO(),1,9)
UPDATE e:\6 SET 第三列=2 WHERE BETWEEN(RECNO(),10,18)
UPDATE e:\6 SET 第三列=3 WHERE BETWEEN(RECNO(),19,27)
*加序号
use e:\6
i=1
do while .not. eof()
repl 序号 with i
skip
i=i+1
enddo
close all
*排序
use e:\6
sort to d:\vfp98\5 on 概桥率3/d
close all
*加概桥排名2序号
use d:\vfp98\5
i=1
do while .not. eof()
repl 概桥排名3 with i
skip
i=i+1
enddo
use e:\6
dele all
pack
append from d:\vfp98\5
drop table d:\vfp98\5
**以序号升序排序
use e:\6
sele * from e:\6 order by 序号 asc
本来想是27行
为何成了21行
求指教