MS Access Left() 함수
예시
문자열에서 3개 문자 추출(왼쪽부터 시작):
SELECT Left("SQL Tutorial", 3) AS ExtractString;
정의 및 사용
Left() 함수는 문자열에서 여러 문자를 추출합니다(왼쪽부터 시작).
참고: Right() 함수 도 참조하십시오 .
통사론
Left(string, number_of_chars)
매개변수 값
Parameter | Description |
---|---|
string | Required. The string to extract from |
number_of_chars | Required. The number of characters to extract. If this parameter is higher than the number of characters in string, this function will return the entire string |
기술적 세부 사항
작동: | 액세스 2000에서 |
---|
더 많은 예
예시
"CustomerName" 열의 텍스트에서 5자를 추출합니다(왼쪽부터 시작).
SELECT Left(CustomerName, 5) AS ExtractString
FROM Customers;