如果要把 a表与b表中字段相同的记录,追加到a表中,可以:
close all
select a.采购编号 distinct from A a,B b where ALLTRIM(a.采购编号)==ALLTRIM(a.采购编号) into TABL ggg
sele A
append from ggg
brow
close all
如果要把 A表与B表中字段相同的记录,追加到A表中,可以:
close all
select a.采购编号 distinct from A a,B b where ALLTRIM(a.采购编号)==ALLTRIM(a.采购编号) into TABL ggg
sele A
append from ggg
brow
close all
A,B 代表两个表名