MS Access Mid() 함수
예시
위치 3에서 시작하여 문자열에서 문자 추출:
SELECT Mid("SQL Tutorial", 3) AS ExtractString;
정의 및 사용
Mid() 함수는 문자열에서 일부 문자를 추출합니다(모든 위치에서 시작).
통사론
Mid(string, start, length)
매개변수 값
Parameter | Description |
---|---|
string | Required. The string to extract from |
start | Required. The start position |
length | Optional. The number of characters to extract. If omitted, this function returns all characters from the start position |
기술적 세부 사항
작동: | 액세스 2000에서 |
---|
더 많은 예
예시
열의 텍스트에서 문자 추출(위치 4에서 시작하여 6개 문자 추출):
SELECT Mid(CustomerName, 4, 6) AS ExtractString
FROM Customers;