MS 액세스 Replace() 함수
예시
문자열에서 "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 |
기술적 세부 사항
작동: | 액세스 2000에서 |
---|