ADO Parameter Object
Parameter Object
ADO Parameter အရာဝတ္ထုသည် သိမ်းဆည်းထားသော လုပ်ထုံးလုပ်နည်း သို့မဟုတ် စုံစမ်းမေးမြန်းမှုတွင် အသုံးပြုသည့် ကန့်သတ်ဘောင်တစ်ခုအကြောင်း အချက်အလက်ကို ပေးပါသည်။
ဖန်တီးသောအခါတွင် Parameter object တစ်ခုကို Parameters Collection သို့ ပေါင်းထည့်သည်။ Parameters Collection သည် သိမ်းဆည်းထားသော လုပ်ထုံးလုပ်နည်းများနှင့် စုံစမ်းမေးမြန်းမှုများအတွင်း ဘောင်များကို ကျော်ဖြတ်ရန် Collection ကိုအသုံးပြုသည့် သီးခြား Command object တစ်ခုနှင့် ဆက်စပ်နေသည်။
Parameterized Commands များဖန်တီးရန် Parameter များကို အသုံးပြုနိုင်သည်။ အဆိုပါ command များသည် ၎င်းကို မလုပ်ဆောင်မီ command ၏အသေးစိတ်အချက်အလက်များကို ပြောင်းလဲရန်အတွက် parameters များကို အသုံးပြု၍ (၎င်းတို့ကို သတ်မှတ်ပြီး သိမ်းဆည်းပြီးနောက်) ဖြစ်သည်။ ဥပမာအားဖြင့်၊ SQL SELECT ထုတ်ပြန်ချက်သည် WHERE clause ၏ စံသတ်မှတ်ချက်များကို သတ်မှတ်ရန် ဘောင်တစ်ခုအား အသုံးပြုနိုင်သည်။
ကန့်သတ်ဘောင်များ အမျိုးအစား လေးမျိုး ရှိသည်- ထည့်သွင်းမှု ကန့်သတ်ချက်များ၊ အထွက် ကန့်သတ်ချက်များ၊ အဝင်/အထွက် ကန့်သတ်ချက်များ နှင့် ပြန်ပေး ကန့်သတ်ချက်များ။
အထားအသို
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 |