Função MS Access Right()
Exemplo
Extraia 4 caracteres de uma string (começando da direita):
SELECT
Right("SQL Tutorial is cool", 4) AS ExtractString;
Definição e uso
A função Right() extrai um número de caracteres de uma string (começando da direita).
Nota: Veja também a função Left() .
Sintaxe
Right(string, number_of_chars)
Valores de parâmetro
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 |
Detalhes técnicos
Trabalha em: | Do Acesso 2000 |
---|
Mais exemplos
Exemplo
Extraia 5 caracteres do texto na coluna "CustomerName" (começando da direita):
SELECT Right(CustomerName, 5) AS ExtractString
FROM Customers;