TFDQuery提交TFDMemTable修改的数据

TFDQuery提交TFDMemTable修改的数据

function Save(const tableName: string; delta: TStream; qry: TFDQuery): Boolean;
begin
  qry.Close;
  qry.CachedUpdates := True;
  qry.sql.Clear;
  qry.sql.Text := 'select * from ' + tableName + ' where 1=2';
  qry.LoadFromStream(delta, TFDStorageFormat.sfBinary);
  Result := qry.ApplyUpdates = 0;
end;

  

上一篇:「NOI2016」国王饮水记(猜结论+动态规划+斜率优化)


下一篇:[GDOI2021 Day2T1] 宝石