Functions and operators : RIGHT( )

RIGHT( )

Extracts a substring from a string, starting from the right-most, or last, character.

Syntax

RIGHT(str)
RIGHT(str, n)

Arguments

str

The string from which to extract a substring.

n

The number of characters to extract, starting from the last character.

Returns

A substring of a specific length.

n  
n  
n  

Example

The following example displays the last four characters of each value in the ProductCode data field.

RIGHT([ProductCode], 4)