Matthew的Blog

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::

当多表join起来的dataset进行处理时,
将DatasetProvider的UpdateMode设为upWhereChanged, Options中如果选择poAllowCommanText会有问题(会更新所有记录);即Options中最好不选

left join 时UpdateMode设为upWhereKeyOnly,并双击dataset添加所有字段,将key字段的ProviderFlag中的pfInkey设为true
但在ClientDataSet中Refresh方法不会更新,要先将Active设为False,再设为True;

posted on 2006-06-05 13:48 matthew 阅读(4316) 评论(0)  编辑 收藏 引用 所属分类: Delphi编程
只有注册用户登录后才能发表评论。