使用如vFDMemTable.CopyDataSet(vTempABQuery);这样复制数据集会出现如下错误:
---------------------------
Shoeserpp
---------------------------
[FireDAC][Comp][DS]-206. Cannot open dataset [vFDMemTable]. A DataTable or a DataView must be supplied. Hint: if that is TFDMemTable, use CreateDataSet or CloneCursor to open dataset.
---------------------------
确定
---------------------------
//vFDMemTable.CopyDataSet(vTempABQuery);
改为:
vFDMemTable.CopyDataSet(vTempABQuery,[coStructure, coRestart, coAppend]);
vFDMemTable.Open;
即可