MS Access Mid() လုပ်ဆောင်ချက်
ဥပမာ
အနေအထား 3 မှစတင်၍ စာကြောင်းတစ်ခုမှ ဇာတ်ကောင်များကို ထုတ်ယူပါ-
SELECT Mid("SQL Tutorial", 3) AS ExtractString;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
Mid() function သည် string တစ်ခုမှ စာလုံးအချို့ကို ထုတ်ယူသည် (မည်သည့်အနေအထားမှ စတင်သည်)။
အထားအသို
Mid(string, start, length)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
string | Required. The string to extract from |
start | Required. The start position |
length | Optional. The number of characters to extract. If omitted, this function returns all characters from the start position |
နည်းပညာဆိုင်ရာအသေးစိတ်
အလုပ်လုပ်သည်- | Access 2000 မှ |
---|
နောက်ထပ် ဥပမာများ
ဥပမာ
ကော်လံတစ်ခုရှိ စာသားမှ စာလုံးများကို ထုတ်ယူပါ (ရာထူး 4 မှ စတင်ကာ စာလုံး 6 လုံးကို ထုတ်ယူပါ)
SELECT Mid(CustomerName, 4, 6) AS ExtractString
FROM Customers;