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, and JavaScript 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.