Funkce MS Access Right() .
Příklad
Extrahujte 4 znaky z řetězce (začínající zprava):
SELECT
Right("SQL Tutorial is cool", 4) AS ExtractString;
Definice a použití
Funkce Right() extrahuje určitý počet znaků z řetězce (začínaje zprava).
Poznámka: Viz také funkce Left() .
Syntax
Right(string, number_of_chars)
Hodnoty parametrů
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 |
Technické údaje
Pracuje v: | Od Access 2000 |
---|
Další příklady
Příklad
Extrahujte 5 znaků z textu ve sloupci „CustomerName“ (začíná zprava):
SELECT Right(CustomerName, 5) AS ExtractString
FROM Customers;