DW里一个行状态为new!会不会产生insert语句?

zhongasen 2009-08-19 09:43:52
DW里一个行状态为new!会不会产生insert语句?
...全文
83 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
龙剑行 2009-08-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 zhongasen 的回复:]
谢谢! 
那么当一个new!行做过resetupdate()后的状态是什么?
那么当一个newmodified!行做过resetupdate()后的状态又是什么?
[/Quote]
那么当一个new!行做过resetupdate()后的状态是什么?
new!
那么当一个newmodified!行做过resetupdate()后的状态又是什么?
notmodified!
一个行状态为new!会不会产生insert语句?
不产生,只有NewModified!才产生.
zhongasen 2009-08-19
  • 打赏
  • 举报
回复
all rows have the status NotModified! or New! !!
F:if rows' update status are newmodified, which will they be changed to ? notmodified?
S:if row's update status is new! ,which will be ?
jlwei888 2009-08-19
  • 打赏
  • 举报
回复
When a row is changed, inserted, or deleted, its update flag is set, making it marked for update. By default the Update method turns these flags off. However, if you want to coordinate updates of more than one DataWindow or DataStore, you can prevent Update from clearing the flags. Then after you verify that all the updates succeeded, you can call ResetUpdate for each DataWindow to clear the flags. If one of the updates failed, you can keep the update flags, prompt the user to fix the problem, and try the updates again.

You can find out which rows are marked for update with the GetItemStatus method. If a row is in the delete buffer or if it is in the primary or filter buffer and has NewModified! or DataModified! status, its update flag is set. After update flags are cleared, all rows have the status NotModified! or New! and the delete buffer is empty.

zhongasen 2009-08-19
  • 打赏
  • 举报
回复
谢谢! 
那么当一个new!行做过resetupdate()后的状态是什么?
那么当一个newmodified!行做过resetupdate()后的状态又是什么?
jlwei888 2009-08-19
  • 打赏
  • 举报
回复
不会!

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧