> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# length

> Returns the byte length of a string.

This function returns the length of a string (in bytes).

## Syntax

```Haskell theme={null}
INT length(VARCHAR str)
```

## Examples

```Plain Text theme={null}
MySQL > select length("abc");
+---------------+
| length('abc') |
+---------------+
|             3 |
+---------------+
```

## keyword

LENGTH


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.