MS Access Replace() လုပ်ဆောင်ချက်
ဥပမာ
string တွင် "i" ကို "a" ဖြင့် အစားထိုးပါ။
SELECT Replace("My name is Willy Wonka", "i", "a") AS ReplaceString;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
Replace() လုပ်ဆောင်ချက်သည် စာကြောင်းတစ်ကြောင်းအတွင်း စာကြောင်းခွဲတစ်ခုကို အခြားစာကြောင်းခွဲများ၊ သတ်မှတ်ထားသည့် အကြိမ်အရေအတွက်ဖြင့် အစားထိုးသည်။
အထားအသို
Replace(string1, find, replacement,
start,
count,
compare)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
string1 | Required. The original string |
find | Required. The substring to search for in string1 |
replacement | Required. The substring to replace find in string1 |
start | Optional. The start position in string1 to begin the search. If omitted, start is 1 |
count | Optional. The number of replaces to perform. If omitted, it will replace all occurrences of find with replacement |
compare | Optional. The type of string comparison. Possible values: -1: Use the setting of Option Compare 0: Binary comparison 1: Textual comparison 2: Comparison based on info in your database |
နည်းပညာဆိုင်ရာအသေးစိတ်
အလုပ်လုပ်သည်- | Access 2000 မှ |
---|