Files
doris/docs/en/sql-reference/sql-functions/string-functions/strleft.md
yangzhg 94b3a2bd50 [Bug] Fix string functions not support multibyte string (#3345)
Let string functions support utf8 encoding
2020-05-08 12:52:46 +08:00

1.2 KiB

title, language
title language
strleft en

strleft

Description

Syntax

'VARCHAR STRAIGHT (VARCHAR STR)'

It returns the left part of a string of specified length, length is char length not the byte size.

example

mysql> select strleft("Hello doris",5);
+------------------------+
| strleft('Hello doris', 5) |
+------------------------+
| Hello                  |
+------------------------+

##keyword STRLEFT