MS 액세스 InstrRev() 함수
예시
문자열 "Customer"(문자열 끝에서 시작)에서 "t"를 검색하고 위치를 반환합니다.
SELECT InstrRev("Customer", "t") AS
MatchPosition;
정의 및 사용
InstrRev() 함수는 문자열 끝에서 다른 문자열에서 문자열이 처음 나타나는 위치를 가져옵니다.
이 함수는 대소문자를 구분하지 않는 검색을 수행합니다.
통사론
InstrRev(string1, string2,
start,
compare)
매개변수 값
Parameter | Description |
---|---|
string1 | Required. The string to be searched |
string2 | Required. The string to search for |
start | Optional. The start position for the search. Position -1 is default (which means that it starts with the last character position) |
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 |
반환 값
- string2가 string1 내에서 발견되지 않으면 이 함수는 0을 반환합니다.
- string2의 길이가 0이면 이 함수는 시작 매개변수의 값을 반환합니다.
- string1의 길이가 0이면 이 함수는 0을 반환합니다.
- string1이 null이면 이 함수는 null을 반환합니다.
- start가 string2의 길이보다 크면 이 함수는 0을 반환합니다.
기술적 세부 사항
작동: | 액세스 2000에서 |
---|