I can not update rows in the database with the following instructions:
fdquery1.Edit;
fdquery1.fieldByName('prova').AsString := 'asdasd';
fdquery1.Open;
Why? i must use another property of TFDQuery for changes to take effect
I can not update rows in the database with the following instructions:
fdquery1.Edit;
fdquery1.fieldByName('prova').AsString := 'asdasd';
fdquery1.Open;
Why? i must use another property of TFDQuery for changes to take effect
在TDataSet.Edit
您必须调用TDataSet.Post
以保留更改的值之后。
fdquery1.Edit;
fdquery1.fieldByName('prova').AsString := 'asdasd';
fdquery1.Post;
该文档也有一个示例
BTW:我不知道你为什么要再次打开数据集?