Lazarus一個奇怪的設置

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時數據丟失)。一直不知道是什麽原因,在官網上看到這樣一條信息,然後給數據表設置主鍵,發現就可以進行插入操作了。

原文地址:https://www.cnblogs.com/weiqi/p/1359724.html