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 类 » ULCommand 构造函数

 

ULCommand(String) 构造函数

用指定的命令文本初始化 ULCommand 对象。

语法
Visual Basic
Public Sub New( _
   ByVal cmdText As String _
)
C#
public  ULCommand(
   string  cmdText
);
参数
  • cmdText   SQL 语句的文本,或者当 ULCommand.CommandType 为 System.Data.CommandType.TableDirect 时,该参数值为表的名称。如果是参数化语句,请使用问号 (?) 占位符来传递参数。

注释

执行语句前需要先设置 ULCommand 对象的 ULCommand.Connection 和 ULCommand.Transaction。

另请参见