एमएस एक्सेस रिप्लेस () फंक्शन
उदाहरण
स्ट्रिंग में "i" को "a" से बदलें:
SELECT Replace("My name is Willy Wonka", "i", "a") AS ReplaceString;
परिभाषा और उपयोग
बदलें () फ़ंक्शन एक स्ट्रिंग के भीतर एक सबस्ट्रिंग को दूसरे सबस्ट्रिंग के साथ, एक निर्दिष्ट संख्या में बदल देता है।
वाक्य - विन्यास
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 |
टेक्निकल डिटेल
काम में: | एक्सेस 2000 . से |
---|