Name
LEFT()
Synopsis
LEFT(str
,len
)
Returns the leftmost len
characters
from the string str
(or NULL
if any argument is NULL
). The following code returns the string
âChrisâ:
SELECT LEFT('Christopher Columbus', '5');
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.