RIGHT(str,len)
返回最右侧的n个字符的字符串str,或NULL如果任何参数是NULL。
SQL> SELECT RIGHT('foobarbar', 4); +---------------------------------------------------------+ | RIGHT('foobarbar', 4) | +---------------------------------------------------------+ | rbar | +---------------------------------------------------------+ 1 row in set (0.00 sec)