Syntax
LEFT(str,len)
Purpose
You can call this function to return the leftmost len characters of the str string. If str or len is NULL, NULL is returned.
This function is multi-byte safe.
Examples
obclient> SELECT LEFT('oceanbase', 5);
+----------------------+
LEFT('oceanbase', 5)
+----------------------+
ocean
+----------------------+
1 row in set (0.00 sec)