USE 搜索记录 IN 0 ALIAS ta
ZAP
USE 表 IN 0 ALIAS tb
SELECT tb
nCount = 0
DO WHILE nCount < 100
SELECT TOP 8 RAND() r, 变量 FROM tb ORDER BY r INTO CURSOR tmp
SELECT SUM(变量) FROM tmp INTO ARRAY aSum
IF aSum % 5 == 0
SELECT 变量 FROM tmp INTO ARRAY av
DIMENSION av[9]
av[9] = aSum
INSERT INTO ta FROM ARRAY av
nCount = nCount + 1
?? " " +TRANSFORM(nCount)+0h0D
ENDIF
ENDDO
SELECT * FROM ta