RIGHT
Purpose
This function returns the right-aligned substring of string with length length.
Syntax
right::=
Usage Notes
- If either
lengthorstringisNULL, thenNULLis returned. - Also if
lengthis greater than the length ofstring, the originalstringis returned. If length is negative or0, thenNULLis returned. - For more information, see functions SUBSTR[ING], MID and LEFT.
Example
SELECT RIGHT('abcdef',3) RIGHT_SUBSTR;