SELECT DISTINCT classmc FROM STUDENTS INTO CURSOR BJMC
SCAN SELECT * FROM STUDENTS WHERE ALLTRIM(classmc)==ALLTRIM(BJMC.classmc) INTO CURSOR BJ IF _TALLY>0 COPY TO (ALLTRIM(BJ.classmc)+[学生名单.XLS]) TYPE XLS ENDIF USE IN BJ
ENDSCAN
求解释:
(1)ALLTRIM(classmc)==ALLTRIM(BJMC.classmc)为什么用==
(2)_TALLY>0是什么意思,主要是_TALLY代表什么
(3)USE IN BJ