Syntax
LEFT(str,len)
Purpose
Returns the leftmost len characters of the string str. If str or len is NULL, it returns NULL.
This function is multibyte-safe.
Examples
obclient> SELECT LEFT('oceanbase', 5);
+----------------------+
| LEFT('oceanbase', 5) |
+----------------------+
| ocean |
+----------------------+
1 row in set
