c++builder FDMemTable 内存表
内存数据表:现在应该首选 TFDMemTable 了(之前是 TClientDataSet)
FDMemTable->CloneCursor(ds, true, true);
FDMemTable->Data = fdQuery->Data;
FDMemTable->CopyDataSet(dm->ADOQueryPub, TFDCopyDataSetOptions() << coStructure << coRestart << coAppend);
ADMemTable1.FilterChanges := [rtModified, rtInserted, rtDeleted];
ADMemTable1.Data := ADQuery1.Delta;
http://blogs.embarcadero.com/sarinadupont/2013/12/23/using-fdmemtable-with-rest/
FDQuery1.SQL.Text := "select * from orders; select * from customers"; FDQuery1.Open; FDQuery1.FetchAll; // assign orders records to FDMemTable1 FDMemTable1.Data := FDQuery1.Data; FDQuery1.NextRecordSet; FDQuery1.FetchAll; // assign customers records to FDMemTable2 FDMemTable2.Data := FDQuery1.Data;