You are viewing an older version of this section. View current production version.
Join the SingleStore Community Today
Get expert advice, develop skills, and connect with others.

LENGTH

Returns the byte length of the given string.

Syntax

LENGTH (str)

Arguments

  • str: any string or binary object

Return Type

Integer

Examples

memsql> select character_length('olé'), length('olé');
+--------------------------+----------------+
| character_length('olé')  | length('olé')  |
+--------------------------+----------------+
|                        3 |              4 |
+--------------------------+----------------+