求教:如何把下面三个表中记录按顺序插入一个表中
三个表记录数一样处理效果应该入下
a记录1
b记录1
c记录1
a记录2
b记录2
c记录2
.
.
.
a记录n
b记录n
c记录n
a.rar
(8.55 KB)
CLOSE DATABASES SET SAFETY off SELECT 0 USE a SELECT 0 USE b SELECT 0 USE c SELECT bh,SPACE(5) as xh from a where 1=2 into table hzb FOR i=1 to 3300 FOR ii=1 to 3 SELECT hzb IF ii=1 APPEND FROM a for RECNO()=i REPLACE xh with 'a'+SUBSTR(ALLTRIM(STR(10000+i)),2) ELSE IF ii=2 APPEND FROM b for RECNO()=i REPLACE xh with 'b'+SUBSTR(ALLTRIM(STR(10000+i)),2) ELSE APPEND FROM c for RECNO()=i REPLACE xh with 'c'+SUBSTR(ALLTRIM(STR(10000+i)),2) ENDIF ENDIF ENDFOR ENDFOR