其他分享
首页 > 其他分享> > TFDQuery提交TFDMemTable修改的数据

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;

  

标签:TFDMemTable,sql,tableName,TFDQuery,提交,delta,qry
来源: https://www.cnblogs.com/hnxxcxg/p/13468531.html