回复 7楼 sdta
谢谢你![code][CLOSE ALL
SELECT 2
USE bb
INDEX on dz TO d
SELECT 1
USE dzb
INDEX on dz TO e
SET RELATION TO dz INTO b
REPLACE ALL 出现次数 WITH b.出现次数
SELECT 出现次数 FROM DZB GROUP BY 出现次数 ORDER BY 出现次数 INTO TABLE hh
USE hh
SCAN
k=出现次数
t="A"+ALLTRIM(STR(k))
sele dzb
copy to &t FOR 出现次数=k
endscan
/code]
这是6.0代码,能再优化代码吗?