mysql> mysql> SELECT SUBSTRING('ABCDEFGHIJK', -3); +------------------------------+ | SUBSTRING('ABCDEFGHIJK', -3) | +------------------------------+ | IJK | +------------------------------+ 1 row in set (0.00 sec) mysql>