Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 428 Bytes

File metadata and controls

33 lines (24 loc) · 428 Bytes

length

description

Syntax

INT length(VARCHAR str)

返回字符串的字节长度。

example

MySQL > select length("abc");
+---------------+
| length('abc') |
+---------------+
|             3 |
+---------------+

MySQL > select length("中国");
+------------------+
| length('中国')   |
+------------------+
|                6 |
+------------------+

keyword

LENGTH