كائن معلمة ADO
كائن المعلمة
يوفر كائن 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 |