Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SACommand 类

 

CreateParameter 方法

提供用于为 SACommand 对象提供参数的 SAParameter 对象。

语法
Visual Basic

Public Function CreateParameter() As SAParameter
C#

public SAParameter CreateParameter();
返回值

一个新的参数,作为 SAParameter 对象。

注释

存储过程和某些其它 SQL 语句可以带参数,这些参数在语句文本中以问号 (?) 表示。

CreateParameter 方法提供了一个 SAParameter 对象。您可以设置 SAParameter 上的属性来为该参数指定值、数据类型等等。

另请参见