Applying changes to the underlying datafile

To use the ApplyUpdates function, the dataset must contain at least one field that fills the requirements for a Primary Key (values must be UNIQUE and not NULL)

PS1: If both conditions are set, the field corresponding to PrimaryKey is used to apply the updates.

PS2: Setting PrimaryKey to a field that is not a Primary Key will lead to loss of data if ApplyUpdates is called, so ensure that the chosen field contains not Null and Unique values before using it.

我在使用Lazarus操作SQLite數據庫時,總是不能保存數據(post時數據丟失)。一直不知道是什麽原因,在官網上看到這樣一條信息,然後給數據表設置主鍵,發現就可以進行插入操作了。

相关文章:

  • 2021-06-27
  • 2021-09-18
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-06-04
  • 2021-12-09
猜你喜欢
  • 2021-11-16
  • 2022-12-23
  • 2021-08-25
  • 2021-06-28
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案