CLEAR
SET safety OFF
DIMENSION xmzd(1,1)
SELECT temp1.姓名 DISTINCT FROM temp1 INTO ARRAY xmzd
SELECT temp1
BROWSE FONT "宋体",14
COPY TO temp2 STRUCTURE
n=ALEN(xmzd)
FOR i=1 TO n
GO top
LOCATE FOR 姓名=ALLTRIM(xmzd(i))
IF FOUND()
SCATTER TO zds
INSERT INTO temp2 FROM ARRAY zds
ENDIF
ENDFOR
SELECT temp2
BROWSE FONT "宋体",14
CLOSE TABLES ALL