ADO Parameter 对象提供有关存储过程或查询中使用的单个参数的信息。
参数对象在创建时会添加到参数集合中。参数集合与特定的命令对象相关联,该对象使用集合将参数传入和传出存储过程和查询。
参数可用于创建参数化命令。这些命令(在定义和存储之后)使用参数在执行之前更改命令的一些细节。例如,SQL SELECT 语句可以使用参数来定义 WHERE 子句的条件。
参数有四种类型:输入参数、输出参数、输入/输出参数和返回参数。
objectname.property
objectname.method
Property | Description |
---|---|
Attributes | Sets or returns the attributes of a Parameter object |
Direction | Sets or returns how a parameter is passed to or from a procedure |
Name | Sets or returns the name of a Parameter object |
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 |
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 |
Type | Sets or returns the type of a Parameter object |
Value | Sets or returns the value of a Parameter object |
Method | Description |
---|---|
AppendChunk | Appends long binary or character data to a Parameter object |
Delete | Deletes an object from the Parameters Collection |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!