打开表以检索行。
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()。
不使用索引打开表能够提高性能。但是,当不使用索引时,返回的表无法用于变更数据并且无法执行查找。
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |