请问ADODataSet属性’Cursortype’中的几个枚举类型是什么意思,它们之间有什么区别? CtDynamic、ctKeyset、ctOpenForwardOnly、ctStatic、ctUnspecified。

解决方案 »

  1.   

    ctUnspecified A specific cursor type has not yet been specified.//未确定类型ctOpenForwardOnly Forward-only cursor in which you can only scroll forward; better performance because only requires single through recordset.//只能向前滚动ctKeyset Keyset cursor; records added by other users are not visible; records deleted by other users are inaccessible.//其他用户添加的数据不可以看到,被其他用户删除的数据不能访问ctDynamic Dynamic cursor; data modifications, deletions, and insertions by other users are visible; scrolling forward and back allowed.//允许向前向后滚动,可以看见其他用户对数据的修改 删除 和添加ctStatic Static cursor; static copy of records; data changes by other users not visible; used mostly for reporting 主要用于报表,被其他用户修改的数据不可以看见
      

  2.   

    指定记录集使用的游标的类型 
    向前移动
    ctOpenForwardOnly - — 除了只能在记录集中向前移动以外,
    其它的和动态游标类似。
    键集
    ctKeyset – 不允许查看其他用户添加的记录和访问其他用户删除的记录。 
    动态
    ctDynamic – 允许其他用户插入、更新和删除,支持在记录集中所有方向
    上的移动。
    静态
    ctStatic - 支持在记录集中所有方向上的移动。但是其他用户的插入、
    更新和删除操作不可见。
    不确定 
    ctUnspecified