Files
doris/docs/en/sql-manual/sql-functions/string-functions/length.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +08:00

1.2 KiB

title, language
title language
length en

length

Description

Syntax

INT length (VARCHAR str)

Returns the length of the string in byte size.

example

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

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

keyword

LENGTH