Syntax
RIGHT(str,len)
Purpose
You can call this function to return the rightmost len characters of the str string. If str or len is NULL, NULL is returned.
This function is multi-byte safe.
Examples
obclient> SELECT RIGHT('oceanbase',4);
+----------------------+
RIGHT('oceanbase',4)
+----------------------+
base
+----------------------+
1 row in set (0.00 sec)