Función MS Access Right()
Ejemplo
Extraiga 4 caracteres de una cadena (comenzando desde la derecha):
SELECT
Right("SQL Tutorial is cool", 4) AS ExtractString;
Definición y uso
La función Right() extrae una serie de caracteres de una cadena (empezando por la derecha).
Nota: Véase también la función Left() .
Sintaxis
Right(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 derecha):
SELECT Right(CustomerName, 5) AS ExtractString
FROM Customers;