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 - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULCommand 类 » ExecuteTable 方法

 

ExecuteTable() 方法

UL Ext.: 在 ULTable 中检索数据库表以便直接进行操作。ULCommand.CommandText 被解释为表的名称,而 ULCommand.IndexName 可用于指定表的排序顺序。

语法
Visual Basic
Public Function ExecuteTable() As ULTable
C#
public ULTable ExecuteTable();
返回值

ULTable 对象形式的表。

注释

必须将 ULCommand.CommandType 设置为 System.Data.CommandType.TableDirect。

如果 ULCommand.IndexName 为空值引用(在 Visual Basic 中是 Nothing),则使用主键打开表。否则,使用 ULCommand.IndexName 值打开表,该值是作为排序依据的索引的名称。

另请参见