RIGHT

 ──RIGHT(string,length──┬───────┬─)───────
                          └─,pad──┘

RIGHT returns a string of length length containing the rightmost length characters of string. The string returned is padded with pad characters (or truncated) on the left as needed. The default pad character is a blank. length must be nonnegative.

Here are some examples:

RIGHT('abc  d',8)     ->    '  abc  d'
RIGHT('abc def',5)    ->    'c def'
RIGHT('12',5,'0')     ->    '00012'


[Back: REVERSE]
[Next: SETLOCAL]