insert into aaa select * from bbb where pk=:current_pk
用循环完成: dm1.table1.Append; for i:= 0 to table2.FieldCount-1 do dm1.table1.fields[i].Value:=dm1.table2.fields[i].Value; dm1.table1.post;或者直接使用batchmove控件实现数据的转移如果用clientdataset替代table控件,可以直接用sql写 insert into aaa select * from bbb where ...
select * from bbb where pk=:current_pk
dm1.table1.Append;
for i:= 0 to table2.FieldCount-1 do
dm1.table1.fields[i].Value:=dm1.table2.fields[i].Value;
dm1.table1.post;或者直接使用batchmove控件实现数据的转移如果用clientdataset替代table控件,可以直接用sql写
insert into aaa
select * from bbb where ...
tableA.Open
tableA.savetofile('文件名')
TableB.Open
TableB.LoadFromFile('文件名') 有点慢 不过写的很方便
AAA.DBF BBB.DBF在不同的目錄下面!
我试过,访问这个首址,就可整条记录读入和写入
能否給個例子?!