CLOSE DATABASES SELECT * FROM Csdb WHERE .F. INTO TABLE Temp SELECT 项目序号,箱数 FROM Csdb GROUP BY 项目序号,箱数 INTO CURSOR cTemp SCAN FOR i = 1 TO 箱数 INSERT INTO Temp VALUES (cTemp.项目序号, cTemp.箱数, ALLTRIM(cTemp.项目序号) + "-" + TRANSFORM(cTemp.箱数), DATE()) ENDFOR ENDSCAN SELECT Temp BROWSE USE IN Temp ERASE Temp.DBF
[此贴子已经被作者于2018-10-13 21:34编辑过]