Originally posted by jmodic
Even more simple and straightforward:

substr('ABCDEFG',-3)
Oooooooooo!

You see if I read the documentation more often, I'd have known that.