按你的代码重新翻译了一下(其实我也不知你想做什么)
CLOSE DATABASES
CREATE CURSOR t7 (序号 int, 第一列 int,第二列 int ,第三列 int,概桥率1 int,
概桥率2 int,
概桥率3 int,
概桥排名1 int,
概桥排名2 int,
概桥排名3 int)
INSERT INTO t7 (第一列) VALUES (1)
INSERT INTO t7 (第一列) VALUES (2)
INSERT INTO t7 (第一列) VALUES (3)
SELECT * FROM t7 INTO CURSOR t6 READWRITE Order By 概桥率1 Desc
REPLACE ALL 概桥排名1 WITH RECNO() IN t6
&&二、加第二列
INSERT INTO t6 SELECT * FROM t6 union all SELECT * FROM t6
REPLACE ALL 第二列 WITH CEILING(RECNO()/3),序号 WITH RECNO() IN t6
*排序
SELECT * FROM t6 INTO CURSOR t6_tmp ORDER BY 概桥率2 DESC
ZAP IN t6
INSERT INTO t6 SELECT * FROM t6_tmp
USE IN t6_tmp
REPLACE ALL 概桥排名2 With RECNO() IN t6
**以序号升序排序
SELECT * FROM t6 INTO CURSOR t6_tmp ORDER BY 序号
ZAP IN t6
INSERT INTO t6 SELECT * FROM t6_tmp
USE IN t6_tmp
INSERT INTO t6 SELECT * FROM t6 union all SELECT * FROM t6
REPLACE ALL 第三列 WITH CEILING(RECNO()/9),序号 WITH RECNO() IN t6
*加概桥排名2序号
SELECT * FROM t6 INTO CURSOR t6_tmp ORDER BY 概桥率3 DESC
ZAP IN t6
INSERT INTO t6 SELECT * FROM t6_tmp
USE IN t6_tmp
REPLACE ALL 概桥排名3 With RECNO() IN t6
**以序号升序排序
SELECT * FROM t6 INTO dbf e:\6 ORDER BY 序号
BROWSE
USE IN t6
USE IN t7
图片附件: 游客没有浏览图片的权限,请
登录 或
注册
[
本帖最后由 bccn0906 于 2013-11-25 16:45 编辑 ]