Outdated Version

You are viewing an older version of this section. View current production version.

LENGTH

Returns the byte length of the given string.

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 |
+--------------------------+----------------+