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 |
+--------------------------+----------------+
Was this article useful?