MS Access Left() လုပ်ဆောင်ချက်
ဥပမာ
စာလုံး ၃ လုံး (ဘယ်ဘက်မှ စတင်သည်) မှ စာလုံး ၃ လုံးကို ထုတ်ယူပါ။
SELECT Left("SQL Tutorial", 3) AS ExtractString;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
Left() function သည် string (ဘယ်ဘက်မှစတင်သည်) မှ စာလုံးအရေအတွက်ကို ထုတ်ယူသည်။
မှတ်ချက်- Right() လုပ်ဆောင်ချက် ကိုလည်း ကြည့်ပါ ။
အထားအသို
Left(string, number_of_chars)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
string | Required. The string to extract from |
number_of_chars | Required. The number of characters to extract. If this parameter is higher than the number of characters in string, this function will return the entire string |
နည်းပညာဆိုင်ရာအသေးစိတ်
အလုပ်လုပ်သည်- | Access 2000 မှ |
---|
နောက်ထပ် ဥပမာများ
ဥပမာ
"ဖောက်သည်အမည်" ကော်လံရှိ စာသားမှ စာလုံး 5 လုံးကို ထုတ်ယူပါ (ဘယ်ဘက်မှ စတင်သည်)
SELECT Left(CustomerName, 5) AS ExtractString
FROM Customers;