# LENGTH()

## Function Description

The `length()` function returns the length of the string.

## Function Syntax

```text
> LENGTH(str)
```

## Parameter definition

| Parameters | Description |
| ---- | ---- |
| str | Required parameter, string to calculate length |

## Example

```sql
select a,length(a) from t1;
a length(a)
a 1
ab 2
abc 3
```
