Quick Ref.
Compatibility
RIGHT(s, i)
Engine OK Alternative
ingres yes
mysql yes
oracle no SUBSTR(s , -i )
postgres no SUBSTRING(s , 1+LENGTH(s)-i , i)
sqlserver yes

RIGHT

RIGHT(s,n) allows you to extract n characters from the end of the string s.

 RIGHT('Hello world', 4) -> 'orld' 

Results
See also: