Name
RIGHT()
Synopsis
RIGHT(str
,len
)
Returns the rightmost len
characters
from the string str
(or NULL
if any argument is NULL
). This code returns the string
âColumbusâ:
SELECT RIGHT('Christopher Columbus', '8');
Get Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.