本文整理自网络,侵删。
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;
https://www.cnblogs.com/hnxxcxg/p/13468531.html
相关阅读 >>
Delphi xe datasnap服务器获取客户端ip地址
Delphi xe andriod 文件后缀对应mime类型
Delphi 禁止用键盘左右箭头,去切换pagecontrol页签
sqlite报错database is locked的解决办法
Delphi 关于选择文件路径 selectdirectory 弹出窗口居中的问题
更多相关阅读请进入《Delphi》频道 >>