2,497
社区成员
发帖
与我相关
我的任务
分享
adoquery2.close;
adoquery2.sql.text := 'select * from '+ adotable1.tablename;
adoquery2.open;
adoquery1.loadfromFile('E:\1.adq');
with adoquery1 do while not eof do begin
adoquery2.append;
adoquery2.fieldbyname('字段名').Value := fieldbyname('字段名').Value;
.......................
next;
end;
uses
ADOInt;
function GetAdoChangeCount(DataSet:TCustomADODataSet):Integer;
var
r:_RecordSet;
begin
Result:=0;
if DataSet.Active then
try
r:=DataSet.Recordset.Clone(adLockBatchOptimistic);
r.Filter:=adFilterPendingRecords;
Result:=r.RecordCount;
except
end;
end;