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 类

 

Prepare 方法

预编译并存储此命令的 SQL 语句。

语法
Visual Basic
Public Overrides Sub Prepare()
C#
public override void Prepare();
注释

当只有参数值发生更改时,对语句进行预编译可以有效地重复使用语句。更改此命令中的任何其它属性都会使得准备的语句无效。

UltraLite.NET 不需要显式准备语句,因为所有未预先准备的命令都会在调用各种 Execute 方法时准备好。

另请参见