Course
Simulator
More
Premium
Log in
MySQL Function Reference
Functions
RIGHT
RIGHT
Returns the specified number of rightmost characters of the string
MySQL 8.1
RIGHT
(
str
,
number_of_characters
)
str
Source string
number_of_characters
The number of characters to extract
Examples
MySQL 8.1
SELECT
RIGHT
(
'sql-academy'
,
3
)
;