MS Access Right() Functie
Voorbeeld
Extraheer 4 karakters uit een string (van rechts beginnend):
SELECT
Right("SQL Tutorial is cool", 4) AS ExtractString;
Definitie en gebruik
De functie Right() extraheert een aantal tekens uit een string (beginnend vanaf rechts).
Opmerking: zie ook de functie Links() .
Syntaxis
Right(string, number_of_chars)
Parameterwaarden
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 |
Technische details
Werkt in: | Van Access 2000 |
---|
Meer voorbeelden
Voorbeeld
Extraheer 5 tekens uit de tekst in de kolom "Klantnaam" (van rechts beginnend):
SELECT Right(CustomerName, 5) AS ExtractString
FROM Customers;