length

description

Syntax

INT length(VARCHAR str)

返回字符串的字节。

example

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

mysql> select length("中国");
+------------------+
| length('中国')   |
+------------------+
|                6 |
+------------------+
作者:超级管理员  创建时间:2023-06-14 17:06
最后编辑:超级管理员  更新时间:2024-09-05 21:06