Función MS Access Left()
Ejemplo
Extraiga 3 caracteres de una cadena (comenzando desde la izquierda):
SELECT Left("SQL Tutorial", 3) AS ExtractString;
Definición y uso
La función Left() extrae una serie de caracteres de una cadena (empezando por la izquierda).
Nota: Véase también la función Derecha() .
Sintaxis
Left(string, number_of_chars)
Valores paramétricos
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 |
Detalles técnicos
Trabaja en: | Desde Acceso 2000 |
---|
Más ejemplos
Ejemplo
Extraiga 5 caracteres del texto en la columna "CustomerName" (comenzando desde la izquierda):
SELECT Left(CustomerName, 5) AS ExtractString
FROM Customers;