ADOパラメータオブジェクト
パラメータオブジェクト
ADOパラメータオブジェクトは、ストアドプロシージャまたはクエリで使用される単一のパラメータに関する情報を提供します。
パラメータオブジェクトは、作成時にパラメータコレクションに追加されます。パラメータコレクションは、特定のコマンドオブジェクトに関連付けられています。このオブジェクトは、コレクションを使用して、ストアドプロシージャおよびクエリとの間でパラメータを渡します。
パラメータを使用して、パラメータ化されたコマンドを作成できます。これらのコマンドは、(定義および保存された後)パラメーターを使用して、実行前にコマンドの詳細を変更します。たとえば、SQL SELECTステートメントは、パラメーターを使用してWHERE節の基準を定義できます。
パラメーターには、入力パラメーター、出力パラメーター、入出力パラメーター、および戻りパラメーターの4つのタイプがあります。
構文
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 |