用指定的命令文本和连接初始化 ULCommand 对象。
Visual Basic Public Sub New( _ ByVal cmdText As String, _ ByVal connection As ULConnection _ )
C# public ULCommand( string cmdText, ULConnection connection );
cmdText SQL 语句的文本,或者当 ULCommand.CommandType 为 System.Data.CommandType.TableDirect 时,该参数值为表的名称。如果是参数化语句,请使用问号 (?) 占位符来传递参数。
connection 表示当前连接的 ULConnection 对象。
执行语句前可能需要先设置 ULCommand 对象的 ULCommand.Transaction。
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |