TSynDBDataSet内存表

SynDBMidasVCL.pas

 TSynDBDataSet = class(TCustomClientDataSet)

Props := TSQLDBSocketConnectionProperties.Create('127.0.0.1:6789', 'jj', 'admin', 'admin');
cds := TSynDBDataSet.Create(Self);
cds.Connection := Props;

查询:

cds.Close;
cds.CommandText := 'select top 100 * from t2 '; //定义一个查询串
cds.Open;

DataSource1.DataSet := cds;

保存:

if cds.State in [dsinsert,dsedit] then
cds.Post;
if cds.ChangeCount > 0 then
cds.ApplyUpdates(0);

相关文章:

  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2022-02-19
  • 2021-08-08
猜你喜欢
  • 2022-12-23
  • 2021-10-01
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
相关资源
相似解决方案