ADO 매개변수 개체


매개변수 개체

ADO Parameter 개체는 저장 프로시저나 쿼리에 사용되는 단일 매개 변수에 대한 정보를 제공합니다.  

매개변수 개체는 생성될 때 매개변수 컬렉션에 추가됩니다. 매개 변수 컬렉션은 컬렉션을 사용하여 저장 프로시저 및 쿼리 안팎으로 매개 변수를 전달하는 특정 Command 개체와 연결됩니다.

매개변수를 사용하여 매개변수화된 명령을 생성할 수 있습니다. 이러한 명령은 (정의되고 저장된 후) 매개변수를 사용하여 실행되기 전에 명령의 일부 세부사항을 변경합니다. 예를 들어, 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