回复 9楼 吹水佬
老师好!“结果在tmp临时表要放进“3d9选个数表”就 APPEND 进去”
我将程序的结尾改为:SELECT * FROM 3d9选个数
结果并没有在3d9选个数表里显示。3d9选个数里只显示原有的三行记录。
老师讲的“tmp放进3d9选个数”怎么放?在何处放?
USE 3d9选个数 IN 0 ALIAS t_3d9选个数 SELECT * FROM t_3d9选个数 WHERE .F. INTO CURSOR tmp READWRITE SELECT tmp APPEND FROM 分列统计15期 FOR RECNO()==RECCOUNT() SCATTER TO arr ZAP APPEND FROM 3d999个数 DIMENSION atj[ALEN(arr)] STORE 0 TO atj n = FCOUNT() atj[1] = arr[1] SCAN SCATTER TO ar FOR i=2 TO n IF ar[i]==arr[i] atj[i] = atj[i] + 1 ENDIF ENDFOR ENDSCAN SELECT t_3d9选个数 LOCATE FOR qihao==atj[1] IF FOUND() GATHER FROM atj ELSE APPEND FROM ARRAY atj ENDIF SELECT * FROM t_3d9选个数 CLOSE DATABASES ALL RETURN