当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Parameter

ADO
ADO介绍
ADO数据库连接
ADO记录集
ADO显示记录
ADO查询语句
ADO记录排序
ADO添加记录
ADO更新记录
ADO删除记录
ADO演示
ADO提升执行速度
ADO Command对象
ADO Connection对象
ADO Error
ADO Field
ADO Parameter
ADO 属性
ADO Record
ADO Recordset
ADO Stream

ADO Parameter


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 816 ::
收藏到网摘: n/a

Parameter Object
Parameter[参数]对象

The ADO Parameter object provides information about a single parameter used in a stored procedure or query.  
ADO Parameter 对象的作用是:为现存的程序或查询语句提供一个单独的参数信息。

A Parameter object is added to the Parameters Collection when it is created. The Parameters Collection is associated with a specific Command object, which uses the Collection to pass parameters in and out of stored procedures and queries.
当Parameter[参数]对象被建立时,它会被添加进参数集合中。参数集合是与一个指定的Command[命令]对象一起使用的,该命令对象将使用集合将参数传递到现有的程序和查询语句中。

Parameters can be used to create Parameterized Commands. These commands are (after they have been defined and stored) using parameters to alter some details of the command before it is executed. For example, an SQL SELECT statement could use a parameter to define the criteria of a WHERE clause.
参数可以被用来创建参数化的指令。这些指令(在它们被定义或保存之后)通过使用参数将一些未执行的指令进行更改。举例来说,SQL SELECT语句可以使用一个参数来定义一个WHERE条款规则。

There are four types of parameters: input parameters, output parameters, input/output parameters and return parameters.
这里有四个类型的参数:input[输入]参数、output[输出]参数、input/output[输入/输出]参数以及return[返回]参数。

Syntax
语法

objectname.property
objectname.method

Properties
属性

Property属性 Description描述
Attributes Sets or returns the attributes of a Parameter object
设置或返回一个Parameter[参数]对象的属性
Direction Sets or returns how a parameter is passed to or from a procedure
设置或返回向程序中传递参数或从程序中传回参数的方式
Name Sets or returns the name of a Parameter object
设置或返回一个Parameter[参数]对象的名称
NumericScale Sets or returns the number of digits stored to the right side of the decimal point for a numeric value of a Parameter object
设置或返回一个数值型Parameter[参数]对象中小数点右边的数位
Precision Sets or returns the maximum number of digits allowed when representing numeric values in a Parameter
设置或返回一个数值型参数值所允许的最大位数
Size Sets or returns the maximum size in bytes or characters of a value in a Parameter object
设置或返回一个Parameter[参数]对象值的最大字节数或特性
Type Sets or returns the type of a Parameter object
设置或返回一个Parameter[参数]对象的具体类型
Value Sets or returns the value of a Parameter object
设置或返回一个Parameter[参数]对象的值

Methods
方法

Method方法 Description描述
AppendChunk Appends long binary or character data to a Parameter object
向一个Parameter[参数]对象中追加一个长二进制数据或字符数据
Delete Deletes an object from the Parameters Collection
删除参数集合中的一个对象

评论 (0) All

登陆 | 还没注册?