Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - C 及 C++ 编程 » API 参考 » UltraLite C++ API 参考 » UltraLite_Connection_iface 类

 

OpenTableEx 函数

打开表以检索行。

语法
UltraLite_Table * UltraLite_Connection_iface::OpenTableEx(
  const ULValue & table_id,
  ul_table_open_type open_type,
  const ULValue & parms,
  const ULValue & persistent_name
)
参数
  • table_id   表的名称或序号。

  • open_type   控制如何返回行。

  • parms   取决于打开类型(如索引名称)的可选参数

  • persistent_name   用于暂停的实例名称。

注释

行的顺序取决于用于打开表的索引。如果没有使用索引,行以任意顺序排列。当应用程序首次打开表时,游标位置设置为 BeforeFirst()。

不使用索引打开表能够提高性能。但是,当不使用索引时,返回的表无法用于变更数据并且无法执行查找。